Ejemplo n.º 1
0
        // GET: Movies
        public ActionResult Index()
        {
            MoviesViewMode moviesviewmode = new MoviesViewMode();

            moviesviewmode.Movies1       = mv.GetVideo();
            moviesviewmode.GetNewMovies  = mv.GetNewVideo().Take(3);
            moviesviewmode.GetMoviesTpye = mt.GetMoviesType();
            //获取分类ID
            moviesviewmode.Get2MoviesType = mv.GetMoviesType(2);
            moviesviewmode.Get1MoviesType = mv.GetMoviesType(1);
            moviesviewmode.Get3MoviesType = mv.GetMoviesType(3);
            moviesviewmode.Get4MoviesType = mv.GetMoviesType(4);
            return(View(moviesviewmode));
        }