Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }