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