feat: ajouter un délai avant la redirection en cas de nom d'artiste manquant
This commit is contained in:
@@ -31,6 +31,10 @@ namespace Webzine.WebApplication.Controllers
|
||||
if (string.IsNullOrEmpty(nom))
|
||||
{
|
||||
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(1000);
|
||||
|
||||
return RedirectToAction("Index", "Accueil");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user