/// <summary> /// Deletes the tag reference to the unit and deletes the Tag if it's not /// references by any unit, Draft /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// The id of the entity to delete /// </param> /// <param name='tag'> /// The tag text to delete /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <object> DeleteTagAsyncByidtagAsync(this IUnits operations, int id, string tag, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.DeleteTagAsyncByidtagWithHttpMessagesAsync(id, tag, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }