Beispiel #1
0
 public void AcceptDebitTransaction(int id)
 {
     using (var ts = new TransactionScope())
     {
         var account = usersFcd.GetUserAccountById(id);
         cardsDAO.WithdrawMoneyFromAccount(account.Id, account.BlockedBalance);
         cardsDAO.DepositMoneyToAccount((int)Consts.Consts.AccountNumbers.SystemAccountId, account.BlockedBalance);
         usersDAO.ClearAccountBlockedBalance(account.Id);
         ts.Complete();
     }
 }