Beispiel #1
0
        public ActionResult Add()
        {
            VideoVM model = new VideoVM()
            {
                Categories = _VideoCategoryService.GetActive(),
            };

            return(View(model));
        }
Beispiel #2
0
        public ActionResult List()
        {
            List <VideoCategory> VideoCategorys = _VideoCategoryService.GetActive().Take(12).OrderByDescending(x => x.AddDate).ToList();

            return(View(VideoCategorys));
        }