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; }
public bool Insert( string Name) { VacationTypeDAC vacationtypeComponent = new VacationTypeDAC(); int VacationTypeID = 0; return vacationtypeComponent.InsertNewVacationType( ref VacationTypeID, Name); }