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); }
public async Task <bool> IsValidUserByPasswordAsync(GetUserByPassEmailRequest request) { return(await _userRepository.IsValidUserByPasswordAsync(request)); }