예제 #1
0
 public void Put(int id, [FromBody] Animal animal)
 {
     animal.AnimalId         = id;
     _db.Entry(animal).State = EntityState.Modified;
     _db.SaveChanges();
 }
예제 #2
0
 public void Put(int id, [FromBody] Cat cat)
 {
     cat.CatId            = id;
     _db.Entry(cat).State = EntityState.Modified;
     _db.SaveChanges();
 }
예제 #3
0
 public void Put(int id, [FromBody] Dog dog)
 {
     dog.DogId            = id;
     _db.Entry(dog).State = EntityState.Modified;
     _db.SaveChanges();
 }