#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

@@ -112,6 +112,20 @@ public class LocalTitreRepository : ITitreRepository
.Where(t => t.Styles.Any(s => s.Libelle == libelle));
}
/// <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.dataStore.Titres
.Where(t => t.Styles.Any(s => s.Libelle == libelle))
.Count();
}
/// <inheritdoc/>
public void Update(Titre titre)
{