public ActionResult Load(string serviceTrade, string projectCode, string projectName, string projectShortName, string supplierCode, string supplierName, string supplierShortName, string constractName, int?pageSize, int pageNum) { List <ConstractDto> list = service.ConstractSearch(serviceTrade, projectCode, projectName, projectShortName, "", constractName, supplierCode, supplierName, supplierShortName, UserInfo.UserId); int total = list.Count(); int pageCount = CalcPages(total, pageSize); int start = CalcStartIndex(pageNum); list = list.Skip(start).Take(_countPerPage).ToList(); return(Json(new { List = list, PageCount = pageCount, CurPage = pageNum })); }