feat: augmenter le délai avant la redirection en cas de nom d'artiste manquant
This commit is contained in:
@@ -32,12 +32,14 @@ namespace Webzine.WebApplication.Controllers
|
|||||||
{
|
{
|
||||||
this._logger.LogWarning("Nom de l'artiste manquant dans la requête.");
|
this._logger.LogWarning("Nom de l'artiste manquant dans la requête.");
|
||||||
|
|
||||||
// Wait 1 second before redirecting to the home page to give the user a chance to see the warning message in the logs.
|
|
||||||
System.Threading.Thread.Sleep(4000);
|
|
||||||
|
|
||||||
return RedirectToAction("Index", "Accueil");
|
return RedirectToAction("Index", "Accueil");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait 4 second before redirecting to the home page to give the user a chance to see the warning message in the logs.
|
||||||
|
Thread.Sleep(4000);
|
||||||
|
|
||||||
// On transforme "fatal-bazooka" en "Fatal Bazooka" pour la factory
|
// On transforme "fatal-bazooka" en "Fatal Bazooka" pour la factory
|
||||||
string nomPropre = System.Globalization.CultureInfo.CurrentCulture.TextInfo
|
string nomPropre = System.Globalization.CultureInfo.CurrentCulture.TextInfo
|
||||||
.ToTitleCase(nom.Replace("-", " "));
|
.ToTitleCase(nom.Replace("-", " "));
|
||||||
|
|||||||
Reference in New Issue
Block a user