Пример #1
0
 public string Post([FromBody] BcClassification bcclassification)
 {
     //Create
     db.BcClassification.Add(bcclassification);
     db.SaveChanges();
     return(JsonConvert.SerializeObject(bcclassification));
 }
Пример #2
0
 public string Delete([FromBody] BcClassification bcclassification)
 {
     db.BcClassification.Remove(bcclassification);
     db.SaveChanges();
     return(JsonConvert.SerializeObject("Ok"));
 }
Пример #3
0
 public void Put(int id, [FromBody] BcClassification bcclassification)
 {
     //Update
     db.BcClassification.Update(bcclassification);
     db.SaveChanges();
 }