#202 : Optimisation du Dashboard.
This commit is contained in:
@@ -208,6 +208,22 @@ namespace Webzine.Repository
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public int CountWithBiography()
|
||||
{
|
||||
try
|
||||
{
|
||||
int count = this.context.Artistes.Count(a => !string.IsNullOrEmpty(a.Biographie));
|
||||
this.logger.LogDebug("Nombre d'artistes avec biographie: {Count}", count);
|
||||
return count;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.logger.LogError(ex, "Erreur lors du comptage des artistes avec biographie.");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public IEnumerable<Artiste> FindArtistes(int offset, int limit)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user