diff --git a/Webzine.WebApplication/Controllers/ArtisteController.cs b/Webzine.WebApplication/Controllers/ArtisteController.cs index 35a2cbc..9f3f265 100644 --- a/Webzine.WebApplication/Controllers/ArtisteController.cs +++ b/Webzine.WebApplication/Controllers/ArtisteController.cs @@ -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"); }