예제 #1
0
        public ActionResult Classify(int classid)
        {
            var findclass = HistoryVideoManage.FindSameVideo(classid);

            ViewModels.historyvd index = new ViewModels.historyvd();
            index.FindSameVideo = findclass;
            return(View(index));
        }
예제 #2
0
        // GET: HistoryVideo
        public ActionResult Index()
        {
            var findall = HistoryVideoManage.FindAllVideo().OrderByDescending(p => p.Video_id).Take(8);

            ViewModels.historyvd index = new ViewModels.historyvd();
            index.FindAllVideo = findall;
            return(View(index));
        }
예제 #3
0
        public ActionResult Detail(int id, int classid)
        {
            var findvideo = HistoryVideoManage.FindVideo(id);
            var findsame  = HistoryVideoManage.FindSameVideo(classid).Take(3);

            ViewModels.historyvd index = new ViewModels.historyvd();
            index.FindVideo     = findvideo;
            index.FindSameVideo = findsame;
            return(View(index));
        }