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