示例#1
0
 public async Task <IdentityUserDto> FindByEmailAsync(string email)
 {
     return(ObjectMapper.Map <IdentityUser, IdentityUserDto>(
                await _userManager.FindByEmailAsync(email)
                ));
 }
示例#2
0
 public virtual async Task <IdentityUserDto> FindByEmailAsync(string email)
 {
     return(ObjectMapper.Map <IdentityUser, IdentityUserDto>(
                await _userManager.FindByEmailAsync(email)
                .ConfigureAwait(false)));
 }