So I am generating a list of top rated titles pulled from the db, and returning the list with the rating. The issue I am having though is that it is returning duplicates. I can use another list to compare and exclude titles but that will only leave a couple as the initial function takes(5). As I am not sure where to prevent it in the initial function was hoping someone could help me. Thanks
This is what I have pulling the Top5 Titles:
public List<MediaRating> IndividualTopFive()
{
    var topFiveList = db.MediaRatingData
                            .Include(u => u.Title)
                            .Where(u => u.RateFor.UserName == User.Identity.Name)
                            .OrderByDescending(i => i.MediaRatingID)
                            .OrderByDescending(r => r.Rating)
                            .Take(5)
                            .ToList();
    return topFiveList;
 
     
    