public string HashPassword(User user, string password) { string hash = passwordHelper.Encrypt(password); user.PasswordHash = hash; return(hash); }