public ActionResult ShowAll(int page = 1, int pageSize = 4) { List <Category> categoryList = null; categoryList = _category.CategoryList(); PagedList <Category> model = new PagedList <Category>(categoryList, page, pageSize); return(View(model)); }
public ActionResult ShowAll(int page = 1, int pageSize = 4) { List <Category> categoryList = null; categoryList = _category.CategoryList(); PagedList <Category> model = new PagedList <Category>(categoryList, page, pageSize); return(View(model)); }