public CreateVoucherBatchResponse CreateBatchVoucherRequest(VoucherBatchSaveModel voucherBatchSaveModel) { var request = new CreateVoucherBatchRequest(); var parmsDic = new Dictionary <string, object>(); parmsDic.Add("_args", voucherBatchSaveModel); request.SetPostParameters(parmsDic); return(_Client.Excute(request)); }
public string CreateBatchVoucher(VoucherBatchSaveModel voucherBatchSaveModel) { var response = CreateBatchVoucherRequest(voucherBatchSaveModel); if (response == null) { return(""); } else { return(response.RestException.message); } }