Пример #1
0
        // GET: Film
        public IActionResult Index()
        {
            var result =
                _mapper.Map <IEnumerable <Film>, IEnumerable <FilmIndexViewModel> >(_filmRepo.GetAll());

            return(View(result));
        }
Пример #2
0
 public ActionResult <IEnumerable <Film> > GetFilms()
 {
     return(_filmRepo.GetAll().ToList());
 }