Пример #1
0
        public bool Insert(int ConferenceProgramId, string Title, int ScheduleSessionTypeId, DateTime StartTime, DateTime EndTime, string SpeakerName, int ConferenceHallId, string Description, string AllDescription, int SpeakerID, string DocPath)
        {
            ConferenceScheduleDAC conferencescheduleComponent = new ConferenceScheduleDAC();
            int ScheduleId = 0;

            return(conferencescheduleComponent.InsertNewConferenceSchedule(ref ScheduleId, ConferenceProgramId, Title, ScheduleSessionTypeId, StartTime, EndTime, SpeakerName, ConferenceHallId, Description, AllDescription, SpeakerID, DocPath));
        }
Пример #2
0
        public bool Insert(ConferenceSchedule conferenceschedule)
        {
            int autonumber = 0;
            ConferenceScheduleDAC conferencescheduleComponent = new ConferenceScheduleDAC();
            bool endedSuccessfuly = conferencescheduleComponent.InsertNewConferenceSchedule(ref autonumber, conferenceschedule.ConferenceProgramId, conferenceschedule.Title, conferenceschedule.ScheduleSessionTypeId, conferenceschedule.StartTime, conferenceschedule.EndTime, conferenceschedule.SpeakerName, conferenceschedule.ConferenceHallId, conferenceschedule.Description, conferenceschedule.AllDescription, conferenceschedule.SpeakerID, conferenceschedule.DocPath);

            if (endedSuccessfuly)
            {
                conferenceschedule.ScheduleId = autonumber;
            }
            return(endedSuccessfuly);
        }