public static IList <UserResultForPageForDate> GetUserLatestAnswers(int userId) { var answers = StudentRecordFinder.GetAnswersForUser(userId); var includedAnswers = StudentRecordFinder.ExtractIncludedAnswers(answers); var sortAnswers = new List <UserResultForPageForDate>(); foreach (var answer in includedAnswers) { var currAnswer = new UserResultForPageForDate(answer, userId); if (!sortAnswers.Contains(currAnswer)) { sortAnswers.Add(currAnswer); } } sortAnswers.Sort(); return(sortAnswers); }