Exemple #1
0
 public string Post([FromBody] BcGeometry bcgeometry)
 {
     //Create
     db.BcGeometry.Add(bcgeometry);
     db.SaveChanges();
     return(JsonConvert.SerializeObject(bcgeometry));
 }
Exemple #2
0
 public string Delete([FromBody] BcGeometry bcgeometry)
 {
     db.BcGeometry.Remove(bcgeometry);
     db.SaveChanges();
     return(JsonConvert.SerializeObject("Ok"));
 }
Exemple #3
0
 public void Put(int id, [FromBody] BcGeometry bcgeometry)
 {
     //Update
     db.BcGeometry.Update(bcgeometry);
     db.SaveChanges();
 }