Changeset 61fed7c for src/main/java/com/example/moviezone/web
- Timestamp:
- 02/08/23 13:58:18 (23 months ago)
- Branches:
- master
- Children:
- 39a45e6, 90317ea
- Parents:
- 86e187f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/web/HomeController.java
r86e187f r61fed7c 134 134 135 135 } 136 // @GetMapping("/films")137 // public String getFilmsPage(Model model){138 // model.addAttribute("cinemas",cinemaService.findAllCinemas());139 // List<FilmsReturnTable> pom=new LinkedList<>();140 // model.addAttribute("films",pom);141 // boolean h=pom.isEmpty();142 // List<FilmsReturnTable> help=filmService.getFilmsFromCinema(2);143 // model.addAttribute("bodyContent","films");144 // return "master-template";145 // }146 147 //@GetMapping("/films")148 @Transactional149 public String getFilmsPage(Model model){150 model.addAttribute("cinemas",cinemaService.findAllCinemas());151 List<FilmsReturnTable> pom=new LinkedList<>();152 model.addAttribute("films",pom);153 boolean h=pom.isEmpty();154 List<FilmsReturnTable> help=filmService.getFilmsFromCinema(2);155 model.addAttribute("bodyContent","films");156 return "master-template";157 }158 136 159 137 … … 172 150 } 173 151 174 // @PostMapping("/getFilmsFromCinema")175 // public String getFilmsFromCinema(@RequestParam Integer cinema, Model model){176 // return getFilmsPage1(model,cinema);177 // }178 152 @GetMapping("/projections") 179 153 public String getProjectionsPage(Model model)
Note:
See TracChangeset
for help on using the changeset viewer.