public Package Delete(int id) { var packDelete = _ctx.Remove(new Package { Id = id }).Entity; _ctx.SaveChanges(); return(packDelete); }
public Order DeleteOrder(int id) { var removedOrder = _ctx.Remove(new Order { Id = id }).Entity; _ctx.SaveChanges(); return(removedOrder); }
public Manufacturer Delete(int id) { var manuRemoved = _ctx.Remove(new Manufacturer { Id = id }).Entity; _ctx.SaveChanges(); return(manuRemoved); }
public Drone Delete(int id) { var droneDelete = _ctx.Remove(new Drone { Id = id }).Entity; _ctx.SaveChanges(); return(droneDelete); }
public Customer DeleteCustomer(int id) { var custRemoved = _ctx.Remove(new Customer() { Id = id }).Entity; _ctx.SaveChanges(); return(custRemoved); }