public void Delete(int inventoryid) { dbConnect connect = new dbConnect(); connect.DeleteInventoryItem(inventoryid); connect.Close(); }