public ActionResult <PeopleReadDto> GetPeopleById(int Id) { var peopleItems = _repository.GetPeopleById(Id); if (peopleItems != null) { return(Ok(_mapper.Map <PeopleReadDto>(peopleItems))); } return(NotFound()); }