public void Put(int id, [FromBody] NationalPark nationalPark) { nationalPark.NationalParkId = id; _db.Entry(nationalPark).State = EntityState.Modified; _db.SaveChanges(); }
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] StatePark statePark) { statePark.StateParkId = id; _db.Entry(statePark).State = Microsoft.EntityFrameworkCore.EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] Review review) { review.ReviewId = id; _db.Entry(review).State = EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] NationalPark nationalPark) { nationalPark.NationalParkId = id; _db.Entry(nationalPark).State = Microsoft.EntityFrameworkCore.EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] State state) { state.StateId = id; _db.Entry(state).State = EntityState.Modified; _db.SaveChanges(); }