#190 : Application d'une méthode générique pour la pagination.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user