// GET api/pocxml/5 public IHttpActionResult Get(int id) { if (POCXmlDB.Count(id) == 0) { return(NotFound()); } else { return(Json(POCXmlDB.Get(id))); } }
// GET api/pocxml public IEnumerable <POCXml> Get() { return(POCXmlDB.Get()); }
// GET api/pocxml/5 public IHttpActionResult Get(int id) { if (POCXmlDB.Count(id) == 0) { return(NotFound()); } else { return(Json(POCXmlDB.Get(id))); } }
// GET api/pocxml public IEnumerable <POCXml> Get() { return(POCXmlDB.Get()); }