/// <summary>
        ///     Update a single label
        /// </summary>
        /// <param name="labelId">ID of label to update</param>
        /// <param name="labelUpdate">label update</param>
        /// <returns>Updated label</returns>
        public async Task <Label> UpdateLabelAsync(string labelId, LabelUpdate labelUpdate)
        {
            var response = await _service.PatchLabelsIDAsync(labelId, labelUpdate).ConfigureAwait(false);

            return(response.Label);
        }
 /// <summary>
 ///     Update a single label
 /// </summary>
 /// <param name="labelId">ID of label to update</param>
 /// <param name="labelUpdate">label update</param>
 /// <returns>Updated label</returns>
 public async Task <Label> UpdateLabelAsync(string labelId, LabelUpdate labelUpdate)
 {
     return(await _service.PatchLabelsIDAsync(labelId, labelUpdate).ContinueWith(t => t.Result.Label));
 }
Пример #3
0
 /// <summary>
 ///     Update a single label
 /// </summary>
 /// <param name="labelId">ID of label to update</param>
 /// <param name="labelUpdate">label update</param>
 /// <returns>Updated label</returns>
 public async Task <Label> UpdateLabelAsync(string labelId, LabelUpdate labelUpdate)
 {
     return((await _service.PatchLabelsIDAsync(labelId, labelUpdate)).Label);
 }