コード例 #1
0
        public ActionResult PlayVideo(int id)
        {
            VideoDAO video   = new VideoDAO();
            var      VideoId = video.GetVideoById(id);

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

            return(View(VideoId));
        }
コード例 #2
0
        public ActionResult Update(int id)
        {
            NgheSiDAO nsdao = new NgheSiDAO();
            var       ns    = nsdao.Listof();
            KhuVucDAO kvdao = new KhuVucDAO();
            var       kv    = kvdao.ListOf();

            ViewBag.ns = ns;
            ViewBag.kv = kv;
            var ud = dao.GetVideoById(id);

            return(View(ud));
        }
コード例 #3
0
 public VideoDTO GetVideoById(int id)
 {
     return(dao.GetVideoById(id));
 }