public void Create(string code, DataModel.Contexts.VoucherCreate voucher, Action <ApiResponse <DataModel.Voucher> > callback) { UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/vouchers/{0}", UriBuilderExtension.EnsureEscapedDataString("code", code))); this.client.DoPostRequest(uriBuilder.Uri, voucher, callback); }
public void Create(DataModel.Contexts.VoucherCreate voucher, Action <ApiResponse <DataModel.Voucher> > callback) { UriBuilder uriBuilder = this.client.GetUriBuilder("/vouchers/"); this.client.DoPostRequest(uriBuilder.Uri, voucher, callback); }