public async Task <ActionResult <IEnumerable <AgencyDto> > > GetAll() { var entities = await _agencyRepository.FindAllAsync(); var entitiesDtos = _mapper.Map <IList <AgencyDto> >(entities); return(Ok(entitiesDtos)); }