public int DeleteTicket(int id) { int result = 0; try { String[] keyColumnNames = { ticketNo }; Object[] keyColumnValues = { id }; result = DALBase.DeleteTable(tableName, keyColumnNames, keyColumnValues); } catch (Exception ex) { throw ex; } return(result); }
public int DeleteBus(String key) { int result = 0; try { String[] keyColumnNames = { busPlate }; Object[] keyColumnValues = { key }; result = DALBase.DeleteTable(tableName, keyColumnNames, keyColumnValues); } catch (Exception ex) { throw ex; } return(result); }
public int DeletePromote(int key) { int result = 0; try { String[] keyColumnNames = { promoteID }; Object[] keyColumnValues = { key }; result = DALBase.DeleteTable(tableName, keyColumnNames, keyColumnValues); } catch (Exception ex) { throw ex; } return(result); }