public List <Ld_Institution_Company> GetCompanyPagingPro(int systemId, int pageId, int pageSize, out int rowCount) { try { int errCode = -1; string errMsg = "fail"; var result = LdCmsDbEntitiesContext.SP_Get_Institution_CompanyPaging(systemId, pageId, pageSize, out errCode, out errMsg, out rowCount); if (errCode != 0) { throw new Exception(errMsg); } if (result == null) { return(null); } else { return(result.ToObject <List <Ld_Institution_Company> >()); } } catch (Exception ex) { throw new Exception(ex.Message); } }