Changeset 5867520 for src/main/java/com/example/moviezone/web
- Timestamp:
- 02/08/23 15:48:51 (22 months ago)
- Branches:
- master
- Children:
- 2c7a732
- Parents:
- 90317ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/web/HomeController.java
r90317ea r5867520 85 85 model.addAttribute("event", event); 86 86 model.addAttribute("bodyContent", "event"); 87 88 return "master-template"; 89 } 90 @GetMapping("/getProjections/{id}") 91 @Transactional 92 public String getProjectionsFromFilm(@PathVariable Long id, Model model) { 93 Film film=filmService.getFilmById(id).get(); 94 model.addAttribute("film",film); 95 model.addAttribute("projections",projectionService.getProjectionsForFilms(id.intValue())); 96 model.addAttribute("bodyContent", "projectionsForFilm"); 87 97 88 98 return "master-template"; … … 168 178 model.addAttribute("films",filmService.getFilmsNow()); 169 179 } 170 model.addAttribute("bodyContent"," films");180 model.addAttribute("bodyContent","projections"); 171 181 return "master-template"; 172 182 }
Note:
See TracChangeset
for help on using the changeset viewer.