Exemple #1
0
        // GET: Admin/Content
        public ActionResult Index(string searchString, int page = 1, int pageSize = 10)
        {
            var dao   = new ContentDao();
            var model = dao.ListAllPage(searchString, page, pageSize);

            ViewBag.SearchString = searchString;//de giu lai gia tri search, ViewBag gui gia tri tu controllor xuong view
            return(View(model));
        }