public ActionResult <RequestReadDto> GetRequestById(int Id) { var requestItem = _repository.GetRequestById(Id); if (requestItem != null) { return(Ok(_mapper.Map <RequestReadDto>(requestItem))); } return(NotFound()); }
public ActionResult <RequestReadDto> GetRequestById(int Id) { var requestItem = _repository.GetRequestById(Id); if (requestItem != null) { return(Ok(_mapper.Map <RequestReadDto>(requestItem))); } return(NotFound()); }