public Drone Create(Drone drone)
        {
            _ctx.Attach(drone).State = EntityState.Added;
            _ctx.SaveChanges();

            return(drone);
        }
示例#2
0
 public Package Create(Package package)
 {
     _ctx.Attach(package).State = EntityState.Added;
     _ctx.SaveChanges();
     return(package);
 }
示例#3
0
 public Order CreateOrder(Order order)
 {
     _ctx.Attach(order).State = EntityState.Added;
     _ctx.SaveChanges();
     return(order);
 }
示例#4
0
 public Manufacturer Create(Manufacturer manufacturer)
 {
     _ctx.Attach(manufacturer).State = EntityState.Added;
     _ctx.SaveChanges();
     return(manufacturer);
 }