/// <summary> /// List all owners of an organization. /// </summary> /// <param name="orgId">ID of organization to get owners</param> /// <returns>the List all owners of an organization</returns> public async Task <List <ResourceOwner> > GetOwnersAsync(string orgId) { Arguments.CheckNonEmptyString(orgId, nameof(orgId)); var response = await _service.GetOrgsIDOwnersAsync(orgId).ConfigureAwait(false); return(response.Users); }
/// <summary> /// List all owners of an organization. /// </summary> /// <param name="orgId">ID of organization to get owners</param> /// <returns>the List all owners of an organization</returns> public async Task <List <ResourceOwner> > GetOwnersAsync(string orgId) { Arguments.CheckNonEmptyString(orgId, nameof(orgId)); return(await _service.GetOrgsIDOwnersAsync(orgId).ContinueWith(t => t.Result.Users)); }
/// <summary> /// List all owners of an organization. /// </summary> /// <param name="orgId">ID of organization to get owners</param> /// <returns>the List all owners of an organization</returns> public async Task <List <ResourceOwner> > GetOwnersAsync(string orgId) { Arguments.CheckNonEmptyString(orgId, nameof(orgId)); return((await _service.GetOrgsIDOwnersAsync(orgId)).Users); }