public void Put(int id, [FromBody] NationalPark nationalPark)
        {
            nationalPark.NationalParkId = id;

            _db.Entry(nationalPark).State = EntityState.Modified;
            _db.SaveChanges();
        }
Esempio n. 2
0
 public void Put(int id, [FromBody] Park park)
 {
     park.ParkId           = id;
     _db.Entry(park).State = EntityState.Modified;
     _db.SaveChanges();
 }
Esempio n. 3
0
 public void Put(int id, [FromBody] StatePark statePark)
 {
     statePark.StateParkId      = id;
     _db.Entry(statePark).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     _db.SaveChanges();
 }
Esempio n. 4
0
 public void Put(int id, [FromBody] Review review)
 {
     review.ReviewId         = id;
     _db.Entry(review).State = EntityState.Modified;
     _db.SaveChanges();
 }
Esempio n. 5
0
 public void Put(int id, [FromBody] NationalPark nationalPark)
 {
     nationalPark.NationalParkId   = id;
     _db.Entry(nationalPark).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     _db.SaveChanges();
 }
Esempio n. 6
0
 public void Put(int id, [FromBody] State state)
 {
     state.StateId          = id;
     _db.Entry(state).State = EntityState.Modified;
     _db.SaveChanges();
 }