public void Put(int id, [FromBody] Place place)
 {
     place.PlaceId          = id;
     _db.Entry(place).State = EntityState.Modified;
     _db.SaveChanges();
 }
示例#2
0
 public void Put(int id, [FromBody] Event gathering)
 {
     gathering.EventId          = id;
     _db.Entry(gathering).State = EntityState.Modified;
     _db.SaveChanges();
 }