public List <Organization> GetOrganizationsByInnList(GetOrganizationsByInnListRequest innList) { const string queryString = "/GetOrganizationsByInnList"; var response = PerformHttpRequest <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(null, queryString, innList); return(response.Organizations.Select(o => o.Organization).ToList()); }
public async Task <List <Organization> > GetOrganizationsByInnListAsync(GetOrganizationsByInnListRequest innList) { const string queryString = "/GetOrganizationsByInnList"; var response = await PerformHttpRequestAsync <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(null, queryString, innList).ConfigureAwait(false); return(response.Organizations.Select(o => o.Organization).ToList()); }
public List <Organization> GetOrganizationsByInnList(GetOrganizationsByInnListRequest innList) { if (innList == null) { throw new ArgumentNullException("innList"); } return(diadocHttpApi.GetOrganizationsByInnList(innList)); }
public List <OrganizationWithCounteragentStatus> GetOrganizationsByInnList(string authToken, string myOrgId, GetOrganizationsByInnListRequest innList) { if (string.IsNullOrEmpty(authToken)) { throw new ArgumentNullException("authToken"); } if (string.IsNullOrEmpty(myOrgId)) { throw new ArgumentNullException("myOrgId"); } if (innList == null) { throw new ArgumentNullException("innList"); } return(diadocHttpApi.GetOrganizationsByInnList(authToken, myOrgId, innList)); }
public List <OrganizationWithCounteragentStatus> GetOrganizationsByInnList(string authToken, string myOrgId, GetOrganizationsByInnListRequest innList) { var queryString = string.Format("/GetOrganizationsByInnList?myOrgId={0}", myOrgId); var response = PerformHttpRequest <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(authToken, queryString, innList); return(response.Organizations); }
public async Task <List <OrganizationWithCounteragentStatus> > GetOrganizationsByInnListAsync(string authToken, string myOrgId, GetOrganizationsByInnListRequest innList) { var queryString = $"/GetOrganizationsByInnList?myOrgId={myOrgId}"; var response = await PerformHttpRequestAsync <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(authToken, queryString, innList).ConfigureAwait(false); return(response.Organizations); }