public Drone Create(Drone drone) { _ctx.Attach(drone).State = EntityState.Added; _ctx.SaveChanges(); return(drone); }
public Package Create(Package package) { _ctx.Attach(package).State = EntityState.Added; _ctx.SaveChanges(); return(package); }
public Order CreateOrder(Order order) { _ctx.Attach(order).State = EntityState.Added; _ctx.SaveChanges(); return(order); }
public Manufacturer Create(Manufacturer manufacturer) { _ctx.Attach(manufacturer).State = EntityState.Added; _ctx.SaveChanges(); return(manufacturer); }