/// <summary> /// Updates a tag. /// </summary> /// <param name="identity">The identity of the caller.</param> /// <param name="tag">The tag to update.</param> /// <param name="update">The updated tag definition.</param> /// <param name="description">A description of the change.</param> /// <param name="cancellationToken">The cancellation token for the request.</param> /// <returns> /// The updated tag definition. /// </returns> protected virtual Task <TagDefinition> UpdateTag(ClaimsPrincipal identity, TagDefinition tag, TagSettings update, string description, CancellationToken cancellationToken) { tag.Update(update, identity, description); return(Task.FromResult(tag)); }