Example #1
0
 /// <summary>
 /// POST api/CashVouchers/Pair/{invoiceType}/{invoiceId}
 /// Add new cash voucher.
 /// </summary>
 public async Task <CashVoucher> CreateAsync(CashVoucherCreate model, InvoiceTypeEnum invoiceType, int invoiceId)
 {
     return(await PostAsync <CashVoucher, CashVoucherCreate>(ResourceUrl + "/Pair" + "/" + (int)invoiceType + "/" + invoiceId, model));
 }
Example #2
0
 /// <summary>
 /// POST api/CashVouchers
 /// Add new cash voucher.
 /// </summary>
 public CashVoucher Create(CashVoucherCreate model)
 {
     return(Post <CashVoucher, CashVoucherCreate>(ResourceUrl, model));
 }
Example #3
0
 /// <summary>
 /// POST api/CashVouchers
 /// Add new cash voucher.
 /// </summary>
 public async Task <CashVoucher> CreateAsync(CashVoucherCreate model)
 {
     return(await PostAsync <CashVoucher, CashVoucherCreate>(ResourceUrl, model));
 }
Example #4
0
 /// <summary>
 /// POST api/CashVouchers/Pair/{cashVoucherId}/{invoiceType}/{invoiceId}
 /// Add new cash voucher.
 /// </summary>
 public CashVoucher Create(CashVoucherCreate model, int cashVoucherId, InvoiceTypeEnum invoiceType, int invoiceId)
 {
     return(Post <CashVoucher, CashVoucherCreate>(ResourceUrl + "/Pair" + "/" + cashVoucherId + "/" + (int)invoiceType + "/" + invoiceId, model));
 }