コード例 #1
0
        public ActionResult <RequestReadDto> GetRequestById(int Id)
        {
            var requestItem = _repository.GetRequestById(Id);

            if (requestItem != null)
            {
                return(Ok(_mapper.Map <RequestReadDto>(requestItem)));
            }
            return(NotFound());
        }