// GET: Admin/Slide public ActionResult Index(int?page) { var model = new SlideDAO().GetAll(); int pageSize = 10; int pageNumber = (page ?? 1); return(View(model.ToPagedList(pageNumber, pageSize))); }
// GET: Admin/Slide public ActionResult Index(int?page) { var model = new SlideDAO().GetAll(); int pageSize = 10; int pageNumber = (page ?? 1); return(View(model.ToPagedList(pageNumber, pageSize))); }