Example #1
0
 public Task <Therapist[]> FilterAsync(TherapistFilter filter)
 {
     return(Task.Run(() => Filter(filter)));
 }
Example #2
0
 public Therapist[] Filter(TherapistFilter filter)
 {
     return(AllTherapists.Where(filter.Allows).ToArray());
 }