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)); }
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)); }