public Dictionary <string, object> RollBack(Dictionary <string, object> Input) { Dictionary <string, object> Output = new Dictionary <string, object>(); string vchr = (string)Input["Voucher"]; var msg = VoucherClient.UnRedeeemVoucher(vchr); Output.Add("VoucherMessage", msg); return(Output); }
public void RollBack() { if (!Input.ContainsKey("Voucher")) { throw new ArgumentException("Voucher not passed"); } string vchr = (string)Input["Voucher"]; var msg = VoucherClient.UnRedeeemVoucher(vchr); Output.Add("VoucherMessage", msg); }