Ignore:
Timestamp:
02/08/23 15:48:51 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
2c7a732
Parents:
90317ea
Message:

Projections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/web/HomeController.java

    r90317ea r5867520  
    8585        model.addAttribute("event", event);
    8686        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");
    8797
    8898        return "master-template";
     
    168178            model.addAttribute("films",filmService.getFilmsNow());
    169179        }
    170         model.addAttribute("bodyContent","films");
     180        model.addAttribute("bodyContent","projections");
    171181        return "master-template";
    172182    }
Note: See TracChangeset for help on using the changeset viewer.