#199 : Correction de la mise en nom propre qui pose problème avec certains artistes comme "PinkPantheress".
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user