コード例 #1
0
        public ActionResult Detail(int id)
        {
            BollyWoodMoviesViewModel model = new BollyWoodMoviesViewModel();

            model.Movie          = _bollyWoodMgr.GetById(id);
            model.UpComingMovies = _bollyWoodMgr.GetUpComingMovies()
                                   .Where(x => x.id != model.Movie.id).ToList();

            return(View(model));
        }
コード例 #2
0
 public Movies GetById(int id)
 {
     return(_bollyWoodMgr.GetById(id));
 }