//by id - category
        public ViewResult Index(FilmViewModel model)
        {
            var category = categorySrv[model.id];

            if (category != null)
            {
                model.CategoryName = category.Name;
            }

            model.Films = filmSrv.GetByCategory(model, model.id);

            return(View(model));
        }
Example #2
0
        public ActionResult Index(FilmViewModel model)
        {
            model.Films = filmSrv.GetByCategory(model, model.id);

            return(View(model));
        }