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