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