public ActionResult ListVideo()
        {
            VideoDAO video = new VideoDAO();
            var      list  = video.ListOf();

            ViewBag.TatCaVideo = list;
            ViewBag.VideoHot   = list;
            return(View());
        }
        public ActionResult PlayVideo(int id)
        {
            VideoDAO video   = new VideoDAO();
            var      VideoId = video.GetVideoById(id);

            ViewBag.TatCaVideo   = video.ListOf();
            Session["VideoById"] = VideoId;

            return(View(VideoId));
        }
Exemplo n.º 3
0
        // GET: Admin/Video
        public ActionResult Index()
        {
            var result = dao.ListOf();

            return(View(result));
        }