// GET: Category public ActionResult Index(string searchValue = "") { var model = new Models.CategoryPaginationResult() { Page = 1, SearchValue = searchValue, PageSize = AppSettings.DefaultPagesize, RowCount = CatalogBLL.Categories_Count(searchValue), Data = CatalogBLL.Categories_List(searchValue) }; return(View(model)); }