public async Task <ActionResult <IEnumerable <VisitorReadDto> > > GetAllVisitors() { var visitorItems = await _repository.GetAllAsync(); if (visitorItems != null) { return(Ok(_mapper.Map <IEnumerable <VisitorReadDto> >(visitorItems))); } else { return(NotFound()); } }