예제 #1
0
 public bool Insert(ConferencePrograms conferenceprograms)
 {
     int autonumber = 0;
     ConferenceProgramsDAC conferenceprogramsComponent = new ConferenceProgramsDAC();
     bool endedSuccessfuly = conferenceprogramsComponent.InsertNewConferencePrograms( ref autonumber,  conferenceprograms.ProgramName,  conferenceprograms.ConferenceId);
     if(endedSuccessfuly)
     {
         conferenceprograms.ConferenceProgramId = autonumber;
     }
     return endedSuccessfuly;
 }
예제 #2
0
        public bool Insert( string ProgramName,  int ConferenceId)
        {
            ConferenceProgramsDAC conferenceprogramsComponent = new ConferenceProgramsDAC();
            int ConferenceProgramId = 0;

            return conferenceprogramsComponent.InsertNewConferencePrograms( ref ConferenceProgramId,  ProgramName,  ConferenceId);
        }