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] Breed breed) { breed.BreedId = id; _db.Entry(breed).State = EntityState.Modified; _db.SaveChanges(); }