Esempio n. 1
0
        public ActionResult Delete(int id)
        {
            VideoCategory VideoCategory = _VideoCategoryService.GetByID(id);

            _VideoCategoryService.Remove(VideoCategory);
            return(Redirect("/SysAdmin/VideoCategory/List"));
        }
Esempio n. 2
0
        public ActionResult ListByCategory(int id)
        {
            VideoVM model = new VideoVM()
            {
                Videos       = _VideoService.GetActive().Where(x => x.VideoCategoryID == id).ToList(),
                Categories   = _VideoCategoryService.GetActive(),
                CategoryName = _VideoCategoryService.GetByID(id).Name,
            };

            return(View(model));
        }