Esempio n. 1
0
 public Owner Create(Owner owner)
 {
     _context.Attach(owner).State = EntityState.Added;
     _context.SaveChanges();
     return(owner);
 }
 public Pet Create(Pet pet)
 {
     _context.Attach(pet).State = EntityState.Added;
     _context.SaveChanges();
     return(pet);
 }
Esempio n. 3
0
 public User Create(User user)
 {
     _context.Attach(user).State = EntityState.Added;
     _context.SaveChanges();
     return(user);
 }
Esempio n. 4
0
 public Color Create(Color color)
 {
     _context.Attach(color).State = EntityState.Added;
     _context.SaveChanges();
     return(color);
 }