Esempio n. 1
0
 public Owner CreateOwner(Owner ownerToCreate)
 {
     _context.Attach(ownerToCreate).State = EntityState.Added;
     _context.SaveChanges();
     return(ownerToCreate);
 }
Esempio n. 2
0
 public Pet CreatePet(Pet createdPet)
 {
     _context.Attach(createdPet).State = EntityState.Added;
     _context.SaveChanges();
     return(createdPet);
 }