Esempio n. 1
0
 public ActionResult Create(AccountDTO account)
 {
     try {
         // TODO: Add insert logic here
         _service.OpenAccount(account.Name, account.AccountType, account.Balance);
         return RedirectToAction("Index");
     }
     catch {
         return View();
     }
 }
        public ActionResult Create(AccountDTO account)
        {
            try
            {
                _service.OpenAccount(account.Username, account.AccountType, account.Balance);

                return RedirectToAction("Index");
            }
            catch(Exception e)
            {
                return View(e.Message);
            }
        }