public IActionResult DeleteConfirmed(int id) { var category = _categoryLogic.GetById(id); _categoryLogic.Delete(category); return(RedirectToAction(nameof(Index))); }
public ActionResult DeleteConfirmed(int id) { _categoryLogic.Delete(id); return(RedirectToAction("Index")); }