From 951c1a862d3ddd54fe87f9b2444edd308657ea04 Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Fri, 27 Mar 2026 09:39:18 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20ajouter=20un=20d=C3=A9lai=20avant=20la?= =?UTF-8?q?=20redirection=20en=20cas=20de=20nom=20d'artiste=20manquant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.WebApplication/Controllers/ArtisteController.cs | 4 ++++ 1 file changed, 4 insertions(+) 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"); }