Example #1
0
        static void UpdateAppointment()
        {
            List <CustomAppointment> appointmnets = System.Web.HttpContext.Current.Session["AppointmentsList"] as List <CustomAppointment>;
            List <CustomResource>    resources    = System.Web.HttpContext.Current.Session["ResourcesList"] as List <CustomResource>;

            CustomAppointment[] insertedAppts = SchedulerExtension.GetAppointmentsToInsert <CustomAppointment>(SchedulerDataHelper.GetSchedulerSettings(), appointmnets, resources);
            SchedulerDataHelper.InsertAppointments(insertedAppts);


            CustomAppointment[] updatedAppts = SchedulerExtension.GetAppointmentsToUpdate <CustomAppointment>(SchedulerDataHelper.GetSchedulerSettings(), appointmnets, resources);
            SchedulerDataHelper.UpdateAppointments(updatedAppts);

            CustomAppointment[] removedAppts = SchedulerExtension.GetAppointmentsToRemove <CustomAppointment>(SchedulerDataHelper.GetSchedulerSettings(), appointmnets, resources);
            SchedulerDataHelper.RemoveAppointments(removedAppts);
        }