public async Task <List <ContactDTO> > Handle(GetAllContactsQuery request, CancellationToken cancellationToken) { List <Contact> contacts = await contactsRepository.GetAsync(); return(mapper.Map <List <Contact>, List <ContactDTO> >(contacts)); }