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