// Do Withdraw public static void doWithdraw(Bank bank) { Account account = FindAccount(bank); if (account != null) { Console.WriteLine("Enter amount to withdraw"); decimal withAmount = Convert.ToDecimal(Console.ReadLine()); WithdrawTransaction withdraw = new WithdrawTransaction(account, withAmount); withdraw.Execute(); bank.ExecuteTransaction(withdraw); } }
public void ExecuteTransaction(WithdrawTransaction transaction) { }