public ActionResult Create(AccountClass acc) { if (ModelState.IsValid) { AccountList accList = new AccountList(); accList.AddAccount(acc); return(RedirectToAction("Index")); } return(View()); }
public ActionResult Create(AccountClass acc) { if (ModelState.IsValid) { AccountList accList = new AccountList(); accList.AddAccount(acc); return(RedirectToAction("Index")); } return(View()); }