Exemplo n.º 1
0
 public void Put(int id, [FromBody] Topping topping)
 {
     topping.ToppingId        = id;
     _db.Entry(topping).State = EntityState.Modified;
     _db.SaveChanges();
 }
Exemplo n.º 2
0
 public void Put(int id, [FromBody] Bagel bagel)
 {
     bagel.BagelId          = id;
     _db.Entry(bagel).State = EntityState.Modified;
     _db.SaveChanges();
 }