Changeset 0fb69cc for src/main/java/com/example/moviezone/web
- Timestamp:
- 02/06/23 20:10:28 (23 months ago)
- Branches:
- master
- Children:
- d09caa7
- Parents:
- b5ce654
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/web/HomeController.java
rb5ce654 r0fb69cc 2 2 3 3 4 import com.example.moviezone.model.Customer; 5 import com.example.moviezone.model.Film; 6 import com.example.moviezone.model.Role; 7 import com.example.moviezone.model.User; 4 import com.example.moviezone.model.*; 8 5 import com.example.moviezone.model.exceptions.PasswordsDoNotMatchException; 9 6 import com.example.moviezone.model.exceptions.UserNotFoundException; … … 45 42 List<Film> films=filmService.findAllFilms(); 46 43 films=films.stream().limit(5).collect(Collectors.toList()); 44 List <Event> events=eventService.findAllEvents().stream().limit(5).collect(Collectors.toList()); 47 45 model.addAttribute("films", films); 46 model.addAttribute("events",events); 48 47 model.addAttribute("bodyContent", "home"); 49 48 … … 177 176 @RequestParam String theme, 178 177 @RequestParam String duration, 178 @RequestParam String img_url, 179 179 @RequestParam String repeating) 180 180 { 181 eventService.save(start_date,theme,duration,repeating );181 eventService.save(start_date,theme,duration,repeating,img_url); 182 182 return "redirect:/home"; 183 183 }
Note:
See TracChangeset
for help on using the changeset viewer.