Changeset 448bd84 for src/main/java/com
- Timestamp:
- 02/04/23 21:37:57 (23 months ago)
- Branches:
- master
- Children:
- 533c366, eb5426c
- Parents:
- a073dad
- Location:
- src/main/java/com/example/moviezone
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/FilmService.java
ra073dad r448bd84 9 9 List<Film> findAllFilms(); 10 10 Film save(String name, Integer duration, String actors, String genre, 11 String age_category, String url, String director, LocalDate start_date,LocalDate end_date 11 String age_category, String url, String director, LocalDate start_date,LocalDate end_date); 12 12 } -
src/main/java/com/example/moviezone/web/HomeController.java
ra073dad r448bd84 3 3 4 4 import com.example.moviezone.model.Customer; 5 import com.example.moviezone.model.Film;6 5 import com.example.moviezone.model.User; 7 6 import com.example.moviezone.model.exceptions.UserNotFoundException; … … 27 26 private final EventService eventService; 28 27 private final TicketService ticketService; 28 private final WorkerService workerService; 29 29 30 public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService ) {30 public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService, WorkerService workerService) { 31 31 this.filmService = filmService; 32 32 this.userService = userService; … … 34 34 this.eventService = eventService; 35 35 this.ticketService = ticketService; 36 this.workerService = workerService; 36 37 } 37 38 … … 169 170 } 170 171 172 @GetMapping("/workers") 173 public String getWorkersPage(Model model) 174 { 175 model.addAttribute("workers",workerService.findAllWorkers()); 176 model.addAttribute("bodyContent", "workers"); 177 return "master-template"; 178 } 171 179 }
Note:
See TracChangeset
for help on using the changeset viewer.