feat: implémenter le service de tableau de bord et DTO pour les statistiques du tableau de bord
This commit is contained in:
@@ -93,5 +93,17 @@ namespace Webzine.Repository
|
||||
.Where(a => a.Nom.ToLower().Contains(mot.ToLower()))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public int Count()
|
||||
{
|
||||
return this.dataStore.Artistes.Count;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public int Count(Func<Artiste, bool> predicate)
|
||||
{
|
||||
return this.dataStore.Artistes.Count(predicate);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user