Beispiel #1
0
        public async Task <IdentityUserDTO> FindUserWithEmail(string email)
        {
            MongoIdentityUser user = await _userManager.FindByEmailAsync(email);

            return(MongoModelToDTOMapper.Map(user));
        }
Beispiel #2
0
        public async Task <IdentityUserDTO> FindUser(string userName, string password)
        {
            MongoIdentityUser user = await _userManager.FindAsync(userName, password);

            return(MongoModelToDTOMapper.Map(user));
        }