Чтобы получить значение List joinTeams, вы можете использовать GET https://graph.microsoft.com/v1.0/me/joinedTeams
в API графа MS .
Необходимые разрешения:
Подробнее см. до здесь .
var q = (from h in hits
group h by new { h.ItemID } into hh
select new {
hh.Key.ItemID,
Score = hh.Sum(s => s.Score)
}).OrderByDescending(i => i.Score);
IEnumerable<Hit> result = hits.
GroupBy(hit => hit.ItemID).
Select(group => new Hit
{
ItemID = group.Key,
Score = group.Sum(hit => hit.Score)
}).
OrderByDescending(hit => hit.Score);