public bool Insert( string Name, int ConferenceId, int LanguageID, int ScheduleSessionTypeParentId) { ScheduleSessionTypeLanguageDAC schedulesessiontypelanguageComponent = new ScheduleSessionTypeLanguageDAC(); int ScheduleSessionTypeId = 0; return schedulesessiontypelanguageComponent.InsertNewScheduleSessionTypeLanguage( ref ScheduleSessionTypeId, Name, ConferenceId, LanguageID, ScheduleSessionTypeParentId); }
public bool Insert(ScheduleSessionTypeLanguage schedulesessiontypelanguage) { int autonumber = 0; ScheduleSessionTypeLanguageDAC schedulesessiontypelanguageComponent = new ScheduleSessionTypeLanguageDAC(); bool endedSuccessfuly = schedulesessiontypelanguageComponent.InsertNewScheduleSessionTypeLanguage( ref autonumber, schedulesessiontypelanguage.Name, schedulesessiontypelanguage.ConferenceId, schedulesessiontypelanguage.LanguageID, schedulesessiontypelanguage.ScheduleSessionTypeParentId); if(endedSuccessfuly) { schedulesessiontypelanguage.ScheduleSessionTypeId = autonumber; } return endedSuccessfuly; }