public void Fund(PaymentAccount paymentAccount, float amount) { if (paymentAccount == null) { return; } paymentAccount.Fund(amount); }
public bool Charge(PaymentAccount paymentAccount, float amount) { if (paymentAccount == null) { return(false); } return(paymentAccount.Charge(amount)); }