public ActionResult ListDecision(DecIndexModels model, int?page) { IDecisionService decSrc = IoC.Resolve <IDecisionService>(); Company _currentcompany = ((EInvoiceContext)FXContext.Current).CurrentCompany; int dstatus = (String.IsNullOrEmpty(model.status) ? -1 : Convert.ToInt32(model.status)); int defautPageSize = 10; int currentPageIndex = page.HasValue ? page.Value - 1 : 0; int ItemCount = 0; IList <Decision> lst = decSrc.SearhByName(_currentcompany.id, dstatus, currentPageIndex, defautPageSize, out ItemCount); model.PageListDEC = new PagedList <Decision>(lst, currentPageIndex, defautPageSize, ItemCount); return(View(model)); }