예제 #1
0
        public CheckingAccount UpdateBalance(long accountNumber, decimal newBalance)
        {
            CheckingAccount checkingAccount = new CheckingAccount
            {
                Balance       = newBalance,
                AccountNumber = accountNumber
            };

            _checkingAccountRepository.UpdateBalance(accountNumber, newBalance);

            return(checkingAccount);
        }
 public CheckingAccount UpdateBalance(long number, decimal balance)
 {
     return(_checkingAccountRepository.UpdateBalance(number, balance));
 }