Exemple #1
0
        private static async Task AddAppointment(Appointment appointment)
        {
            var newAppointment = await CalendarAPI.Add(appointment);

            if (newAppointment != null)
            {
                var newPa = await App.ViewModel.CreatePocalAppoinment(newAppointment);

                PocalAppointmentUpdater.Update(null, newPa);
            }
        }
Exemple #2
0
        // ******** *************************** *********//
        // ******** Edits exisiting Appointment *********//
        // ******** *************************** *********//


        public static async void EditAppointment(PocalAppointment pA)
        {
            var appt = await CalendarAPI.Edit(pA.Appt);

            PocalAppointment newPa = null;

            if (appt != null)
            {
                newPa = await App.ViewModel.CreatePocalAppoinment(appt);
            }
            PocalAppointmentUpdater.Update(pA, newPa);
        }