Skip to content

Commit

Permalink
EDIT: ContentRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
DracoGilga committed Jun 15, 2024
1 parent 1ea1a9a commit 37f04ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RepositoryEFCore/Repositories/ContentRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public IEnumerable<Content> ReadAllContents(int idUser)
(combined, category) => new { Content = combined.Content, Category = category })
.Where(x => userAge >= x.Category.MiniumAge)
.Select(x => x.Content)
.Distinct()
.OrderBy(content => content.Title)
.ToList();

return contents;
Expand Down

0 comments on commit 37f04ff

Please sign in to comment.