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