public static PagedList <BizLogModel> QueryBizLogInfo(BizLog log, int pageIndex, int pageSize, DateTime?startTime, DateTime?endTime, out int totalRecords) { BizLogModel[] getData = new BizLogModel[] {}; using (APIClient client = new APIClient()) { getData = client.QueryLog(out totalRecords, new BizLogFilter() { PageIndex = pageIndex, PageSize = pageSize, Keyword = log.Keyword, KeywordTypeID = (int)log.KeywordType, Summary = log.Summary, SystemCode = GetSystemType.GetSystemTypeCode(log.SystemCode), ModuleName = log.ModuleName, UserRealName = log.UserRealName, CreateOnStart = startTime, CreateOnEnd = endTime }); } return(getData.ToPagedList(pageIndex, pageSize)); }