Пример #1
0
        public IActionResult Get(int id)
        {
            var item = _repo.GetRequest(id);

            if (item == null)
            {
                return(NotFound());
            }

            return(Json(item));
        }
Пример #2
0
        public ActionResult <IEnumerable <Request> > GetRequest()
        {
            var requestItems = _repository.GetRequest();

            return(Ok(requestItems));
        }