async private void setUp()
        {
            Controllers.Schedule schedule = new Controllers.Schedule();
            await schedule.GetEmployeeAppointments();

            this.calendar.ItemsSource     = schedule.MappedAppointments;
            this.appointments.ItemsSource = schedule.TodaysAppointments;
        }
        private async void calendar_AppointmentEditorClosed(object sender, Syncfusion.UI.Xaml.Schedule.AppointmentEditorClosedEventArgs e)
        {
            if (e.EditedAppointment != null && e.Action == Syncfusion.UI.Xaml.Schedule.EditorClosedAction.Save)

            {
                if (e.IsNew)
                {
                    //create new record
                }
                else if (!e.OriginalAppointment.Equals(e.EditedAppointment))
                {
                    Controllers.Schedule schedule = new Controllers.Schedule();
                    await schedule.UpdateCalendarData(e);
                }
            }
        }
 private void calendar_AppointmentCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 {
     //e holds the new record
     Controllers.Schedule schedule = new Controllers.Schedule();
 }