public async Task <ActionResult> Index(SearchModel model) { ProductionService service = new ProductionService(); List <SearchProduction> searchProductionList = await service.search(model.CategoryId, model.Criteria); int pageSize = 16; int pageNumber = 1; return(PartialView("Index", searchProductionList.ToPagedList(pageNumber, pageSize))); }