I have a foreach loop that returns something like this:
value 1
value 1
value 1
value 2
value 2
value 2
value 2
I need to get that list but only the first of each type. So,
value 1
value 2
below is my code.
<div>
    @foreach (var publishedVideo in allVideos)
    {
        <p>@publishedVideo.GetPropertyValue("segment")</p>
    }
</div>
How do I de-duplicate the list?
 
     
    
@seg
}` – juharr Jul 17 '17 at 13:02