public bool TryGetVoucher(string Code, out Voucher Voucher) { if (this._vouchers.TryGetValue(Code, out Voucher)) return true; return false; }
public bool TryGetVoucher(string code, out Voucher voucher) { return(_vouchers.TryGetValue(code, out voucher)); }