コード例 #1
0
        public ActionResult <PeopleReadDto> GetPeopleById(int Id)
        {
            var peopleItems = _repository.GetPeopleById(Id);

            if (peopleItems != null)
            {
                return(Ok(_mapper.Map <PeopleReadDto>(peopleItems)));
            }

            return(NotFound());
        }