コード例 #1
0
 public void Withdraw(BankUser bankUser, decimal money,decimal bankWithdrawFeeRate)
 {
     bankUser.Balance -= (money+money*bankWithdrawFeeRate);
     bankUser.LastTransactionTime = DateTime.Now;
 }
コード例 #2
0
 public void Deposit(BankUser bankUser, decimal money)
 {
     bankUser.Balance = money;
     bankUser.LastTransactionTime = DateTime.Now;
 }