コード例 #1
0
        public ActionResult Recent(string s, int page = 1, int pageSize = 10)
        {
            ViewBag.Search = s;
            var model = dao.ListAllPaging(s, page, pageSize);

            return(View(model));
        }
コード例 #2
0
        // GET: Admin
        public ActionResult Index(string sa, int page = 1, int pageSize = 20)
        {
            if (!User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("DangNhap", "Login"));
            }
            ViewBag.Search = sa;
            var model = dao.ListAllPaging(sa, page, pageSize, true);

            return(View(model));
        }