Exemplo n.º 1
0
        public async Task <ActionResult> GetFilmById(string filmId, string posterImg)
        {
            MoonwalkViewModel model = new MoonwalkViewModel
            {
                Poster = posterImg
            };

            model.MoonwalkModel = await moonwalkService.GetFilmsById(filmId);

            model.GenresFilms = await iGenresFilmsRepo.GetGenresFilmsAsync();

            return(View(model));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> Films(string filmName = "Во все", int page = 1)
        {
            MoonwalkViewModel model = new MoonwalkViewModel
            {
                FilmName = filmName.Trim()
            };

            model.MoonwalkModel = await moonwalkService.GetFilmsByName(filmName);

            model.GenresFilms = await iGenresFilmsRepo.GetGenresFilmsAsync();

            return(View(model));
        }