Пример #1
0
        // do not use it, this method reschedules time
        internal SchedulerEvent SaveAppointment(SchedulerEvent appointment)
        {
            var dataService      = new QNomyDataService();
            var newAppointmentId = dataService.UpdateAppointmentTime(appointment.AppointmentId, appointment.Start_date, appointment.End_date);
            var qnomyApp         = Appointment.Get(newAppointmentId);
            var app = new AppointmentInfo();

            app.AppointmentDate     = qnomyApp.AppointmentDate;
            app.AppointmentDuration = qnomyApp.AppointmentDuration;
            app.AppointmentId       = qnomyApp.Id;
            app.AppointmentTypeName = qnomyApp.AppointmentTypeName;
            app.CurrentEntityStatus = qnomyApp.CurrentEntityStatus;

            app.StageId           = appointment.StageId;
            app.CalendarStageType = appointment.StageType;

            SchedulerEvent se = ToScheduleEvent(app);

            return(se);
        }