protected override async Task InitializeAsync() { Appointments.Clear(); var appointments = await _myHealthClient. AppointmentsService.GetPatientAppointmentsAsync(AppSettings.CurrentPatientId, MaxAppointmentsToList); if (appointments.Count > 0) { Appointments.AddRange(appointments); } AppointmentSelectedItem = Appointments.FirstOrDefault(); }
public AppointmentAggregate(AppointmentSlot slot, IEnumerable <Appointment> appointments) { Slot = slot; Appointments.AddRange(appointments); }