private bool AllBodySamplesCollected() { bool result = true; var sampleAggregates = _BodyManager.Select(o => new { TrackingId = o.Key, SamplesCollected = _FacePhotos.Where(p => p.TrackingId == o.Key).Count() }); foreach (var item in sampleAggregates) { if (item.SamplesCollected < _TotalSamples) { result = false; break; } } return(result); }