From 46a48643e5de4626433484aedb9fb011b27e5566 Mon Sep 17 00:00:00 2001 From: Loic Masi Date: Tue, 31 Mar 2026 19:52:53 +0200 Subject: [PATCH] #167 : Correction de la suppression. --- .../Areas/Administration/Controllers/StyleController.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Webzine.WebApplication/Areas/Administration/Controllers/StyleController.cs b/Webzine.WebApplication/Areas/Administration/Controllers/StyleController.cs index aabde2b..1283fd0 100644 --- a/Webzine.WebApplication/Areas/Administration/Controllers/StyleController.cs +++ b/Webzine.WebApplication/Areas/Administration/Controllers/StyleController.cs @@ -109,11 +109,6 @@ public class StyleController : Controller [HttpPost] public IActionResult Delete(StyleDeleteViewModel model) { - if (!this.ModelState.IsValid) - { - return this.RedirectToAction("Index"); - } - var style = this.styleRepository.Find(model.IdStyle); if (style != null)