public PagedDataList<CustomerInfoVM> SearchCustomer_PagingAll(string superTenantCode, string CusName, string LicenceNumber, string SIMNo, string DeviceNo, int rowIndex, int pageSize) { try { int rowCount; EMTenantService tenantServ = new EMTenantService(); IList<EMTenant> ltTenant = tenantServ.SearchAll(superTenantCode, CusName,LicenceNumber,SIMNo,DeviceNo, rowIndex, pageSize, out rowCount); if (ltTenant.IsNullOrEmpty()) return null; return new PagedDataList<CustomerInfoVM>() { Datas = ConvertToVM(ltTenant), RowCount = rowCount }; } catch (Exception ex) { Logger.Error(ex.Message, ex); return null; } }