예제 #1
0
파일: Bank.cs 프로젝트: rlu789/Learnding
        public void PerformDeposit(Account account, decimal amount, string description, DateTimeOffset depositDate)
        {
            Account acc = AccountList.Cast <Account>().SingleOrDefault(i => i.AccountNumber == account.AccountNumber);

            acc.Balance += amount;
            TransactionLog.Add(new StatementRow(acc, depositDate, amount, acc.Balance, description));
        }