Merge branch 'dev' into j3/TODO_erreurs

This commit is contained in:
josephine.vetu
2026-04-01 17:41:27 +02:00
26 changed files with 281 additions and 74 deletions

View File

@@ -167,4 +167,20 @@ public class DbStyleRepository : IStyleRepository
throw;
}
}
/// <inheritdoc/>
public int Count()
{
try
{
int count = Enumerable.Count(this.context.Styles);
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;
}
}
}