@RequestMapping(value = "/profile/education/{id}", method = RequestMethod.GET) public ModelAndView editEducation(@PathVariable Long id, Locale locale) { Education addEducation = profileService.retrieveEducations(id, locale); ModelAndView modelAndView = constructModelAndView(addEducation, locale); modelAndView.addObject(COMMAND_EDUCATION, addEducation); return modelAndView; }
private Object constructAllEducations(Locale locale) { List<Education> result = profileService.retrieveEducations(locale); return result; }