Example #1
0
        public bool Insert(string Name, int TransportationTypeID, string Description, int ConferenceID)
        {
            TravelDAC travelComponent = new TravelDAC();
            int       ID = 0;

            return(travelComponent.InsertNewTravel(ref ID, Name, TransportationTypeID, Description, ConferenceID));
        }
Example #2
0
        public bool Insert(Travel travel)
        {
            int       autonumber       = 0;
            TravelDAC travelComponent  = new TravelDAC();
            bool      endedSuccessfuly = travelComponent.InsertNewTravel(ref autonumber, travel.Name, travel.TransportationTypeID, travel.Description, travel.ConferenceID);

            if (endedSuccessfuly)
            {
                travel.ID = autonumber;
            }
            return(endedSuccessfuly);
        }