Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public string CreateBatchVoucher(VoucherBatchSaveModel voucherBatchSaveModel)
        {
            var response = CreateBatchVoucherRequest(voucherBatchSaveModel);

            if (response == null)
            {
                return("");
            }
            else
            {
                return(response.RestException.message);
            }
        }