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