#190 : Application d'une méthode générique pour la pagination.

This commit is contained in:
Loic Masi
2026-04-05 10:56:53 +02:00
parent d04d53c8fd
commit cbefaad9d7
9 changed files with 64 additions and 16 deletions

View File

@@ -191,8 +191,7 @@ public class DbStyleRepository : IStyleRepository
var styles = this.context.Styles
.AsNoTracking()
.OrderBy(s => s.Libelle)
.Skip(offset)
.Take(limit);
.Paginate(offset, limit);
this.logger.LogDebug("La liste paginée de styles a été récupérée.");
return styles;