#167 : Correction de la suppression.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user