예제 #1
0
        public async Task <bool> IsValidUserByPasswordAsync(GetUserByPassEmailRequest request)
        {
            var list = await GetAsync <User.DomainModel.User>()
                       .Where(x => x.Email == request.Email && x.Password == request.Password)
                       .ProjectTo <UserResponse>(_mapper.ConfigurationProvider)
                       .ToListAsync();

            return(list.Count > 0);
        }
예제 #2
0
 public async Task <bool> IsValidUserByPasswordAsync(GetUserByPassEmailRequest request)
 {
     return(await _userRepository.IsValidUserByPasswordAsync(request));
 }