#190 : Application d'une méthode générique pour la pagination.
This commit is contained in:
@@ -103,8 +103,7 @@ public class DbCommentaireRepository : ICommentaireRepository
|
||||
.AsNoTracking()
|
||||
.Include(c => c.Titre)
|
||||
.OrderByDescending(c => c.DateCreation)
|
||||
.Skip(offset)
|
||||
.Take(limit);
|
||||
.Paginate(offset, limit);
|
||||
|
||||
return commentaires;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user