public ActionResult PlayVideo(int id) { VideoDAO video = new VideoDAO(); var VideoId = video.GetVideoById(id); ViewBag.TatCaVideo = video.ListOf(); Session["VideoById"] = VideoId; return(View(VideoId)); }
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)); }
public VideoDTO GetVideoById(int id) { return(dao.GetVideoById(id)); }