From 8eba3a9fd4bca5345d3abc4b0e5b14a41207a6b4 Mon Sep 17 00:00:00 2001 From: Loic Masi Date: Thu, 9 Apr 2026 14:03:48 +0200 Subject: [PATCH] =?UTF-8?q?#199=20:=20Correction=20de=20la=20mise=20en=20n?= =?UTF-8?q?om=20propre=20qui=20pose=20probl=C3=A8me=20avec=20certains=20ar?= =?UTF-8?q?tistes=20comme=20"PinkPantheress".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.WebApplication/Controllers/ArtisteController.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Webzine.WebApplication/Controllers/ArtisteController.cs b/Webzine.WebApplication/Controllers/ArtisteController.cs index 9980afa..dc053fd 100644 --- a/Webzine.WebApplication/Controllers/ArtisteController.cs +++ b/Webzine.WebApplication/Controllers/ArtisteController.cs @@ -43,15 +43,11 @@ return this.RedirectToAction("Index", "Accueil"); } - // On transforme "fatal-bazooka" en "Fatal Bazooka" - string nomPropre = System.Globalization.CultureInfo.CurrentCulture.TextInfo - .ToTitleCase(nom.Replace("-", " ")); - - var artiste = this.artisteRepository.FindByName(nomPropre); + var artiste = this.artisteRepository.FindByName(nom); if (artiste == null) { - this.logger.LogWarning("Artiste non trouvé avec le nom : {NomArtiste}", nomPropre); + this.logger.LogWarning("Artiste non trouvé avec le nom : {NomArtiste}", nom); return this.RedirectToAction("Index", "Accueil"); }