public AuthResult AddPassword(int userId, string password) { password.ThrowIfNull("password"); var identityResult = _userManager.AddPassword(userId, password); var appIdentityResult = IdentityModelFactory.Create(identityResult); return(appIdentityResult); }