示例#1
0
 public ActionResult Create(TransactionsViewModel model)
 {
     try
     {
         _transactionLogic.CreateTransaction(model);
         _accountLogic.RefreshAccountBalance(model.AccountId);
         return(RedirectToAction(nameof(Index), "Transaction", new { id = model.AccountId }));
     }
     catch
     {
         return(RedirectToAction("Index", "Transaction", new { id = model.AccountId }));
     }
 }