public void InsertDog(Dog dog) { context.Dogs.Add(dog); }
public void UpdateDog(Dog dog) { context.Entry(dog).State = EntityState.Modified; }
public void modify(Dog dog) { dog.Breed = "Jack Russell Terrier"; dogRepository.UpdateDog(dog); }