public IActionResult SignUp(User user) { var repository = new JokesRepository(_conn); repository.AddUser(user); return(Redirect("/account/login")); }
public IActionResult SignUp(User user, string password) { JokesRepository rep = new JokesRepository(_connString); user.PasswordHash = PasswordHelper.HashPassword(password); rep.AddUser(user); return(Redirect("/account/login")); }