#124 Pagination faite pour la page d'accueil, ordonnée par date de création puis du libelle. Début de pagination pour les artistes.

This commit is contained in:
josephine.vetu
2026-04-02 16:24:17 +02:00
parent ae80c3e14e
commit 06cdb351ec
8 changed files with 67 additions and 17 deletions

View File

@@ -99,15 +99,14 @@ public class DbTitreRepository : ITitreRepository
this.logger.LogDebug("Recherche des titres avec offset: {Offset}, limit: {Limit}", offset, limit);
var titres = this.context.Titres
.OrderByDescending(t => t.DateCreation)
.ThenBy(t => t.Libelle)
.Include(t => t.Artiste)
.Include(t => t.Styles)
.OrderBy(t => t.Libelle)
.Skip(offset)
.Take(limit)
.AsNoTracking()
.ToList();
.AsNoTracking();
this.logger.LogDebug("{Count} titres trouvés", titres.Count);
return titres;
}
catch (Exception ex)