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

update

parent 6af032a0
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."
......@@ -32,9 +32,8 @@ public class organisationControllers {
}
@Autowired
private localAuthorityRepository localAuthorityRepository;
@PostMapping("/local-auth-data")
@PostMapping("/localSub")
public ModelAndView localAuthSent(@Valid @ModelAttribute("localAuthority")localAuthority localAuthority, BindingResult bindingResult, Model model ) {
List<localAuthority> localAuthorityList = localAuthorityRepository.getAllLocalAuthority();
if (bindingResult.hasErrors()){
ModelAndView modelAndView = new ModelAndView("local-auth-data", model.asMap());
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