fix: optimiser la récupération du nombre total d'artistes en utilisant Enumerable.Count

This commit is contained in:
mirage
2026-04-01 16:22:53 +02:00
parent 9818f785f9
commit 07d414fc82

View File

@@ -182,7 +182,7 @@ namespace Webzine.Repository
{
try
{
int count = this.context.Artistes.Count();
int count = Enumerable.Count(this.context.Artistes);
this.logger.LogDebug("Nombre total d'artistes dans la base: {Count}", count);
return count;
}