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

Tweaks

parent 91f45878
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."
......@@ -22,12 +22,12 @@ public class organisationControllers {
}
@GetMapping("/businesses")
public ModelAndView getBusinessPage(){
ModelAndView modelAndView = new ModelAndView("WorkWith/business.html");
ModelAndView modelAndView = new ModelAndView("businesses");
return modelAndView;
}
@Autowired
private businessRepository businessRepository;
@PostMapping("/businesssub")
@PostMapping("/business-data")
public ModelAndView businessSent(@Valid @ModelAttribute("business-data")business business, BindingResult bindingResult, Model model ) {
if (bindingResult.hasErrors()) {
ModelAndView modelAndView = new ModelAndView("business-data", model.asMap());
......
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