Пример #1
0
 public static async Task <SampleCategory> GetCategoryBySample(Sample sample)
 {
     return((await GetCategoriesAsync()).FirstOrDefault(c => c.Samples.Contains(sample)));
 }