#167 : Correction de la suppression.

This commit is contained in:
Loic Masi
2026-03-31 19:52:53 +02:00
parent 00b8c2b33f
commit 46a48643e5

View File

@@ -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)