Skip to content
Snippets Groups Projects
Commit 5e18506a authored by Rhys Nute's avatar Rhys Nute
Browse files

updated businesses

parent 62cf05fc
No related branches found
No related tags found
2 merge requests!38Draft: Businesses,!31Resolve "As a user, I want to see a page of local authorities so that I can easily source contact details for a variety of different local authorities."
...@@ -28,7 +28,7 @@ public class organisationControllers { ...@@ -28,7 +28,7 @@ public class organisationControllers {
@Autowired @Autowired
private businessRepository businessRepository; private businessRepository businessRepository;
@PostMapping("/businesssub") @PostMapping("/businesssub")
public ModelAndView localAuthSent(@Valid @ModelAttribute("business-data")business business, BindingResult bindingResult, Model model ) { public ModelAndView businessSent(@Valid @ModelAttribute("business-data")business business, BindingResult bindingResult, Model model ) {
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
ModelAndView modelAndView = new ModelAndView("business-data", model.asMap()); ModelAndView modelAndView = new ModelAndView("business-data", model.asMap());
return modelAndView; return modelAndView;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment