Пример #1
0
 public void Put(int id, [FromBody] StatePark statePark)
 {
     statePark.StateParkId      = id;
     _db.Entry(statePark).State = EntityState.Modified;
     _db.SaveChanges();
 }
Пример #2
0
 public void Put(int id, [FromBody] NationalPark nationalPark)
 {
     nationalPark.NationalParkId   = id;
     _db.Entry(nationalPark).State = EntityState.Modified;
     _db.SaveChanges();
 }