public Pet AddPet(Pet pet) { ctx.Attach(pet).State = EntityState.Added; ctx.SaveChanges(); return(pet); }
public PetType AddPetType(PetType type) { ctx.Attach(type).State = EntityState.Added; ctx.SaveChanges(); return(type); }
public Owner AddOwner(Owner owner) { ctx.Attach(owner).State = EntityState.Added; ctx.SaveChanges(); return(owner); }
public Color AddColor(Color color) { ctx.Attach(color).State = EntityState.Added; ctx.SaveChanges(); return(color); }
public User AddUser(User user) { ctx.Attach(user).State = EntityState.Added; ctx.SaveChanges(); return(user); }