public void AddAccessoireToAnimal(int animalId, int AccessoryId) { var animal = context.Animals.Find(animalId); var accessory = context.Accessories.Find(AccessoryId); animal.Accessories.Add(accessory); context.SaveChanges(); }
public void AddAnimalsToOrder(int animalId, int bookId) { var animal = context.Animals.Find(animalId); var booking = context.Bookings.Find(bookId); booking.Animals.Add(animal); context.SaveChanges(); }
public void Add(Customer c) { context.Customers.Add(c); context.SaveChanges(); }
public void Add(Accessory a) { context.Accessories.Add(a); context.SaveChanges(); }