Example #1
0
        //
        // GET: /Search/

        public ActionResult Index(string keyword)
        {
            FilmDAO     fiDao  = new FilmDAO();
            CategoryDAO cDao   = new CategoryDAO();
            SearchModel result = new SearchModel
            {
                ListResultFilm = fiDao.SearchFilm(keyword),
                TopFilm        = fiDao.GetTopFilm(5),
                NewFilm        = fiDao.GetTopNewestFilm(5),
                ListCategory   = cDao.GetAllCategory(),
            };

            return(View(result));
        }