#202 : Optimisation du Dashboard.

This commit is contained in:
Loic Masi
2026-04-06 22:02:57 +02:00
parent 3859ba80a4
commit 20ef50cb51
9 changed files with 216 additions and 28 deletions

View File

@@ -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)
{