public IActionResult Delete(int id) { if (id <= 0) { SetMessage($"Product Id {id} is not exist ", "error"); return(RedirectToAction("Liste")); } _productBLL.DeleteById(id); SetMessage($"Product Id {id} Deleted Succesfuly"); return(RedirectToAction("Liste")); }