Пример #1
0
 public bool Insert(VacationType vacationtype)
 {
     int autonumber = 0;
     VacationTypeDAC vacationtypeComponent = new VacationTypeDAC();
     bool endedSuccessfuly = vacationtypeComponent.InsertNewVacationType( ref autonumber,  vacationtype.Name);
     if(endedSuccessfuly)
     {
         vacationtype.VacationTypeID = autonumber;
     }
     return endedSuccessfuly;
 }
Пример #2
0
        public bool Insert( string Name)
        {
            VacationTypeDAC vacationtypeComponent = new VacationTypeDAC();
            int VacationTypeID = 0;

            return vacationtypeComponent.InsertNewVacationType( ref VacationTypeID,  Name);
        }