예제 #1
0
 public IActionResult Create
     ([Bind("AccountType,EmailAddress")] Account account)
 {
     if (ModelState.IsValid)
     {
         BankFactory.CreateAccount(account.EmailAddress, account.AccountType);
         return(RedirectToAction(nameof(Index)));
     }
     return(View(account));
 }