예제 #1
0
        public ActionResult Detail(int id, int detailId = 0)
        {
            var model = VideoService.GetById(id);

            model.VideoDetailListDtos = VideoDetailService.GetVideoDetailList(id).ToList();

            ViewBag.DetailId = detailId;
            return(View(model));
        }
예제 #2
0
        public ActionResult Detail(long videoId)
        {
            var model = VideoService.GetById(videoId);

            ViewBag.VideoTitle = model.Title;
            var list = VideoDetailService.GetVideoDetailList(videoId).ToList();

            ViewBag.VideoId = videoId;
            return(View(list));
        }