C# unique items from list based on property
List<SingleTerms> distinct = temp .GroupBy(p => p.termsId) .Select(g => g.First()) .ToList();