async Task ToggleAppointmentImportant(SchedulerAppointment appt) { appt.IsImportant = !appt.IsImportant; await ApptService.UpdateAsync(appt); await GetAppointments(); }
protected override async Task OnInitializedAsync() { DateTime start = ApptService.GetStartTime(); StartDate = start; DayStart = start; await GetAppointments(); }
async Task DeleteAppt(SchedulerAppointment appt) { if (appt.IsImportant) { return; } await ApptService.DeleteAsync(appt); await GetAppointments(); }
async Task GetAppointments() { Appointments = new List <SchedulerAppointment>(await ApptService.GetAppointmentsAsync()); }