public BusTypeInfo SelectByBusTypeID(string busTypeID)
        {
            IDataReader Reader      = DataAccess.SelectByBusTypeID(busTypeID);
            BusTypeInfo busTypeInfo = new BusTypeInfo();

            if (Reader.Read())
            {
                busTypeInfo.BusTypeID   = Convert.ToString(Reader["BusTypeID"]);
                busTypeInfo.BusTypeCode = Convert.ToString(Reader["BusTypeCode"]);
                busTypeInfo.Description = Convert.ToString(Reader["Description"]);
                busTypeInfo.TotalSeats  = Convert.ToInt32(Reader["TotalSeats"]);
            }
            Reader.Close();
            return(busTypeInfo);
        }
        public BusTypeCollections SelectList()
        {
            BusTypeCollections collection = new BusTypeCollections();
            IDataReader        Reader     = DataAccess.SelectList();

            while (Reader.Read())
            {
                BusTypeInfo busTypeInfo = new BusTypeInfo();
                busTypeInfo.BusTypeID   = Convert.ToString(Reader["BusTypeID"]);
                busTypeInfo.BusTypeCode = Convert.ToString(Reader["BusTypeCode"]);
                busTypeInfo.Description = Convert.ToString(Reader["Description"]);
                busTypeInfo.TotalSeats  = Convert.ToInt32(Reader["TotalSeats"]);
                collection.Add(busTypeInfo);
            }
            Reader.Close();
            return(collection);
        }
 public void UpdateByBusTypeID(BusTypeInfo busTypeInfo)
 {
     DataAccess.UpdateByBusTypeID(busTypeInfo.BusTypeID, busTypeInfo.BusTypeCode, busTypeInfo.Description, busTypeInfo.TotalSeats);
 }
 public void Insert(BusTypeInfo busTypeInfo)
 {
     DataAccess.Insert(busTypeInfo.BusTypeID, busTypeInfo.BusTypeCode, busTypeInfo.Description, busTypeInfo.TotalSeats);
 }