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