示例#1
0
        public ActionResult MainMoviesList()
        {
            var mainMovieList = new MainMoviesListViewModel()
            {
                MainMovieList = _mainMovieDataProvider.GetAllMainMovies()
            };

            return(PartialView(mainMovieList));
        }
示例#2
0
        public ViewResult ViewBestChoiceMovies(int?page)
        {
            var hotMovies  = _mainMovieDataProvider.GetAllMainMovies();
            int pageSize   = 10;
            int pageNumber = (page ?? 1);

            return(View(new ViewBestChoiceMoviesViewModel()
            {
                MainMovies = hotMovies.ToPagedList(pageNumber, pageSize)
            }
                        ));
        }