// //delete teratmient All part from cart database public bool deleteAllCart(string teratmentID) { sql_class cart = new sql_class(); cart.Where("teratmentID", teratmentID); DataTable cartDelete = cart.Delete("CartModel"); return((cartDelete.Rows.Count > 0) ? true : false); }
//delete repair job in database public bool deleteJob(string teratmentID) { sql_class sql = new sql_class(); sql.Where("teratmentID", teratmentID); DataTable jobDelete = sql.Delete("RepairJob"); return((jobDelete.Rows.Count > 0) ? true : false); }
public bool deleteItem(string GargeID, string CustomerID, string partID) { sql_class sql = new sql_class(); sql.Where("GaragID", GargeID); sql.Where("CustomerID", CustomerID); sql.Where("ProductId", partID); DataTable data = sql.Delete("CartModel"); return((data.Rows.Count > 0) ? true : false); }