示例#1
0
        public ActionResult Index(int page = 1, int pageSize = 5)
        {
            var dao   = new SlideDao();
            var model = dao.ListAllPaging(page, pageSize);

            return(View(model));
        }
示例#2
0
        // GET: Admin/Slide
        public ActionResult Index(string searchString, int page = 1, int pageSize = 5)
        {
            var dao   = new SlideDao();
            var model = dao.ListAllPaging(searchString, page, pageSize);

            ViewBag.SearchString = searchString;
            return(View(model));
        }
        // GET: Admin/SLide
        public ActionResult Index(string searchString = null, int page = 1, int pageSize = 3)
        {
            var model = new SlideDao();
            var list  = model.ListAllPaging(searchString, page, pageSize);

            ViewBag.searchString = searchString;
            return(View(list));
        }