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