Beispiel #1
0
 public void Put(int id, [FromBody] Item item)
 {
     item.ItemId           = id;
     _db.Entry(item).State = EntityState.Modified;
     _db.SaveChanges();
 }
 public void Put(int id, [FromBody] Location location)
 {
     location.LocationId       = id;
     _db.Entry(location).State = EntityState.Modified;
     _db.SaveChanges();
 }
 public void Put(int id, [FromBody] Deal deal)
 {
     deal.DealId           = id;
     _db.Entry(deal).State = EntityState.Modified;
     _db.SaveChanges();
 }