Exemplo n.º 1
0
        public ActionResult <IEnumerable <PeopleReadDto> > GetAllPeople()
        {
            var peopleItems = _repository.GetAllPeoples();

            return(Ok(_mapper.Map <IEnumerable <PeopleReadDto> >(peopleItems)));
        }