public async Task <User> FindByEmailAsync(string email) { email.ThrowIfNull("email"); var appIdentityUser = await _userManager.FindByEmailAsync(email); var user = IdentityModelFactory.Create(appIdentityUser); return(user); }