#216 : Ajout de la pagination sur la page style.

This commit is contained in:
Loic Masi
2026-04-09 11:38:25 +02:00
parent 37a14a7a50
commit 645cd19909
6 changed files with 99 additions and 4 deletions

View File

@@ -314,6 +314,20 @@ public class DbTitreRepository : ITitreRepository
}
}
/// <inheritdoc/>
public IEnumerable<Titre> SearchByStylePaginate(int offset, int limit, string libelle)
{
return this.SearchByStyle(libelle).Paginate(offset, limit);
}
/// <inheritdoc/>
public int CountByStyle(string libelle)
{
return this.context.Titres
.Where(t => t.Styles.Any(s => s.Libelle.ToLower() == libelle.ToLower()))
.Count();
}
/// <inheritdoc/>
public int CountLike()
{