feat: implémenter le service de tableau de bord et DTO pour les statistiques du tableau de bord

This commit is contained in:
mirage
2026-04-01 13:12:00 +02:00
parent 727d29889a
commit e47a50e0da
14 changed files with 198 additions and 50 deletions

View File

@@ -178,4 +178,20 @@ public class DbStyleRepository : IStyleRepository
throw;
}
}
/// <inheritdoc/>
public int Count()
{
try
{
int count = this.context.Styles.Count();
this.logger.LogDebug("Nombre total de styles: {Count}", count);
return count;
}
catch (Exception ex)
{
this.logger.LogError(ex, "Erreur lors du comptage des styles");
throw;
}
}
}