Ejemplo n.º 1
0
        public bool Insert(string Name)
        {
            AirLineDAC airlineComponent = new AirLineDAC();
            int        ID = 0;

            return(airlineComponent.InsertNewAirLine(ref ID, Name));
        }
Ejemplo n.º 2
0
        public bool Insert(AirLine airline)
        {
            int        autonumber       = 0;
            AirLineDAC airlineComponent = new AirLineDAC();
            bool       endedSuccessfuly = airlineComponent.InsertNewAirLine(ref autonumber, airline.Name);

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