Beispiel #1
0
 /// <summary>
 /// Adds the specified SalesOrder to the collection via POST.
 /// </summary>
 /// <param name="salesOrder">The SalesOrder to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created SalesOrder.</returns>
 public System.Threading.Tasks.Task <SalesOrder> AddAsync(SalesOrder salesOrder, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <SalesOrder>(salesOrder, cancellationToken));
 }
 /// <summary>
 /// Creates the specified SalesOrder using POST.
 /// </summary>
 /// <param name="salesOrderToCreate">The SalesOrder to create.</param>
 /// <returns>The created SalesOrder.</returns>
 public System.Threading.Tasks.Task <SalesOrder> CreateAsync(SalesOrder salesOrderToCreate)
 {
     return(this.CreateAsync(salesOrderToCreate, CancellationToken.None));
 }
Beispiel #3
0
 /// <summary>
 /// Adds the specified SalesOrder to the collection via POST.
 /// </summary>
 /// <param name="salesOrder">The SalesOrder to add.</param>
 /// <returns>The created SalesOrder.</returns>
 public System.Threading.Tasks.Task <SalesOrder> AddAsync(SalesOrder salesOrder)
 {
     return(this.AddAsync(salesOrder, CancellationToken.None));
 }