예제 #1
0
 public virtual ActionResult Save(AccountActivityViewModel withdrawal)
 {
     try
     {
         if (ModelState.IsValid)
         {
             PublishAndCommit(new WithdrawlCashCommand(withdrawal.AccountId, withdrawal.Amount));
             return RedirectToAction(MVC.Account.Details.Show(withdrawal.AccountId));
         }
     }
     catch (Exception ex)
     {
         ReportError(ex.Message);
     }
     return View(Views.Show, withdrawal);
 }
예제 #2
0
 public virtual ActionResult Show(Guid id)
 {
     var withdrawal = new AccountActivityViewModel{AccountId = id};
     return View(withdrawal);
 }
예제 #3
0
 public virtual ActionResult Show(Guid id)
 {
     var deposit = new AccountActivityViewModel { AccountId = id };
     return View(deposit);
 }