public async Task <List <ContactResponse> > Handle(GetAllContactsRequest request, CancellationToken cancellationToken) { var response = new List <ContactResponse>(); var results = await _contactQueryRepository.GetAllContacts(request.EndPointAssessorOrganisationId, request.WithUser); if (results == null) { return(response); } return(Mapper .Map <List <ContactResponse> >(results)); }