#216 : Ajout de la pagination sur la page style.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user