示例#1
0
        public IActionResult DeleteConfirmed(int id)
        {
            var category = _categoryLogic.GetById(id);

            _categoryLogic.Delete(category);

            return(RedirectToAction(nameof(Index)));
        }
示例#2
0
 public ActionResult DeleteConfirmed(int id)
 {
     _categoryLogic.Delete(id);
     return(RedirectToAction("Index"));
 }