Пример #1
0
        // 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);
            }
        }
Пример #2
0
 public void ExecuteTransaction(WithdrawTransaction transaction)
 {
 }