/// <summary>
        /// List all labels of an organization.
        /// </summary>
        /// <param name="orgId">ID of an organization to get labels</param>
        /// <returns>the List all labels of an organization</returns>
        public async Task <List <Label> > GetLabelsAsync(string orgId)
        {
            Arguments.CheckNonEmptyString(orgId, nameof(orgId));

            return(await _service.GetOrgsIDLabelsAsync(orgId).ContinueWith(t => t.Result.Labels));
        }
Exemple #2
0
        /// <summary>
        /// List all labels of an organization.
        /// </summary>
        /// <param name="orgId">ID of an organization to get labels</param>
        /// <returns>the List all labels of an organization</returns>
        public async Task <List <Label> > GetLabelsAsync(string orgId)
        {
            Arguments.CheckNonEmptyString(orgId, nameof(orgId));

            return((await _service.GetOrgsIDLabelsAsync(orgId)).Labels);
        }