// GET: Index public ActionResult Index() { IndexViewMode indexviewmode = new IndexViewMode(); indexviewmode.GetNewMovies = mv.GetNewVideo().Take(3); indexviewmode.GetImages = im.GetImages(); indexviewmode.GetActive = am.GetActive().Take(8); return(View(indexviewmode)); }
// GET: Movies public ActionResult Index() { MoviesViewMode moviesviewmode = new MoviesViewMode(); moviesviewmode.Movies1 = mv.GetVideo(); moviesviewmode.GetNewMovies = mv.GetNewVideo().Take(3); moviesviewmode.GetMoviesTpye = mt.GetMoviesType(); return(View(moviesviewmode)); }
// 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)); }