Esempio n. 1
0
 public void Post([FromBody] Park park)
 {
     _db.Parks.Add(park);
     _db.SaveChanges();
 }
Esempio n. 2
0
 public void Post([FromBody] State state)
 {
     _db.States.Add(state);
     _db.SaveChanges();
 }
Esempio n. 3
0
 public void Post([FromBody] StatePark statePark)
 {
     _db.StatePark.Add(statePark);
     _db.SaveChanges();
 }
Esempio n. 4
0
 public void Post([FromBody] Rating rating)
 {
     _db.Ratings.Add(rating);
     _db.SaveChanges();
 }