/// <summary> /// Adds the specified Term to the collection via POST. /// </summary> /// <param name="term">The Term to add.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The created Term.</returns> public System.Threading.Tasks.Task <Term> AddAsync(Term term, CancellationToken cancellationToken) { this.ContentType = "application/json"; this.Method = "POST"; return(this.SendAsync <Term>(term, cancellationToken)); }
/// <summary> /// Adds the specified Term to the collection via POST. /// </summary> /// <param name="term">The Term to add.</param> /// <returns>The created Term.</returns> public System.Threading.Tasks.Task <Term> AddAsync(Term term) { return(this.AddAsync(term, CancellationToken.None)); }