public override ActionResult Index(int?pageIndex) { int index = pageIndex ?? 1; IEnumerable <T_Operation> entities = (IEnumerable <T_Operation>)Session[cacheSearchKey] ?? opService.GetAll(); IEnumerable <T_Operation> result = opService.GetSearchPagingInfo(entities, index, base.PageSize); return(PartialView("_OperationGrid", result)); }