public async Task <AuthResult> AddPasswordAsync(int userId, string password) { password.ThrowIfNull("password"); var identityResult = await _userManager.AddPasswordAsync(userId, password); var appIdentityResult = IdentityModelFactory.Create(identityResult); return(appIdentityResult); }