public ActionResult Create(AppUser newUser) { AppUserRepo repo = new AppUserRepo(); if (ModelState.IsValid) { repo.AddAccount(newUser); return(RedirectToAction("Details", new { userID = newUser.userID })); } else { return(View()); } }