public async Task <ContactDto> GetContact(int contactId) { var contact = await _unitOfWork.ContactRepository.GetByIdAsync(contactId) ?? throw new EntityNotFoundException(); return(ContactMapper.ToDto(contact)); }