public IActionResult SignUp(User user) { UserRepos repository = new UserRepos(_connectionString); repository.AddUser(user); return(Redirect("/user/logIn")); }
public IActionResult SignUp(Registration sr) { if (ModelState.IsValid) { UserRepos.AddUser(sr); return(View("Welcome", sr)); } else { return(View()); } }