async Task OnAppointmentSelect(SchedulerAppointmentSelectEventArgs <Appointment> args) { Console.WriteLine($"AppointmentSelect: Appointment={args.Data.Text}"); var result = await DialogService.OpenAsync <EditAppointmentPage>("Edit Appointment", new Dictionary <string, object> { { "Appointment", args.Data } }); if (result == null) { // Deleted //await scheduler.Reload(); return; } else if (!(await AppointmentsRepository.UpdateAppointment(args.Data))) { NotificationService.Notify(new NotificationMessage { Severity = NotificationSeverity.Warning, Detail = "An error occured on the server. The appointment was not updated.", Duration = 30000, Summary = "Error" }); return; } }