/// <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)); }
/// <summary> /// POST api/CashVouchers /// Add new cash voucher. /// </summary> public CashVoucher Create(CashVoucherCreate model) { return(Post <CashVoucher, CashVoucherCreate>(ResourceUrl, model)); }
/// <summary> /// POST api/CashVouchers /// Add new cash voucher. /// </summary> public async Task <CashVoucher> CreateAsync(CashVoucherCreate model) { return(await PostAsync <CashVoucher, CashVoucherCreate>(ResourceUrl, model)); }
/// <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)); }