private void FillAllAppointments() { var allAppointments = AppointmentService.GetAllAppointments().Select(x => new CommandedAppointment(x) { RefreshAppointments = this.RefreshAppointments }).ToList(); AllPatientsAppointments.Clear(); AllPatientsAppointments.AddRange(allAppointments); }