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