Ejemplo n.º 1
0
        //
        // GET: /HomePage/

        public ActionResult Home()
        {
            FilmDAO     fiDao  = new FilmDAO();
            AccountDAO  accDao = new AccountDAO();
            CategoryDAO cDao   = new CategoryDAO();
            HomeModel   home   = new HomeModel
            {
                MainListFilm = fiDao.GetListFilm(),
                TopFilmHot   = fiDao.GetTop10Film(),
                Account      = null,
                ListCategory = cDao.GetAllCategory(),
            };

            return(View(home));
        }