Example #1
0
        public ActionResult Index()
        {
            BollyWoodMoviesViewModel model = new BollyWoodMoviesViewModel();

            model.BollywoodMovies = _bollyWoodMgr.GetBollyWoodMovies();
            model.UpComingMovies  = _bollyWoodMgr.GetUpComingMovies();
            model.LatestMovies    = _bollyWoodMgr.GetLatestMovies();
            model.GetByYear       = _bollyWoodMgr.GetByYear(DateTime.Now.Year);
            return(View(model));
        }
Example #2
0
        public IList <Movies> GetByYear(int year)
        {
            var movies = _bollyWoodMgr.GetByYear(year);

            return(movies);
        }