コード例 #1
0
 public async Task <List <Symptom> > GetTopSymptomsAsync(int take)
 {
     return(await RepositoryDbSet
            .OrderByDescending(s => s.Diseases.Count)
            .ThenBy(d => d.SymptomName)
            .Take(take)
            .ToListAsync());
 }