Exemple #1
0
        public override void Execute()
        {
            int amount = CurrATM.ExecuteDeposit(billsToDeposit, CurrAccount);

            CurrAccount.AddAmount(amount);

            // добавить манипуляции с базой данных итд
        }
Exemple #2
0
        public override void Execute()
        {
            int sum_withdrawal = CurrATM.ExecuteWithdraw(isSmallMode, isLargeMode, amount);

            CurrAccount.AddAmount(-sum_withdrawal);
        }