public IActionResult Get(int id) { var item = _repo.GetRequest(id); if (item == null) { return(NotFound()); } return(Json(item)); }
public ActionResult <IEnumerable <Request> > GetRequest() { var requestItems = _repository.GetRequest(); return(Ok(requestItems)); }