public virtual bool Withdraw(CurrencyType currency, int amount) { if (currency == Currency) { amount -= amount / Value * Value; } if (amount == 0) { return(true); } return(_nextHandler != null && _nextHandler.Withdraw(currency, amount)); }
public bool Withdraw(CurrencyType currency, int amount) { return(_handler.Withdraw(currency, amount)); }