public void Put(int id, [FromBody] Park park) { park.ParkId = id; _db.Entry(park).State = EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] NativeSpecies nativeSpecies) { nativeSpecies.NativeSpeciesId = id; _db.Entry(nativeSpecies).State = EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] Landmark landmark) { landmark.LandmarkId = id; _db.Entry(landmark).State = EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] Detail detail) { detail.DetailId = id; _db.Entry(detail).State = EntityState.Modified; _db.SaveChanges(); }