public IActionResult DeleteSubjectPost(int id) { if (id != 0) { subjectManager.DeleteSubject(id); return(RedirectToAction("Index")); } return(View("Error")); }
public ActionResult DeleteConfirmed(int id) { subjectManager.DeleteSubject(id); return(RedirectToAction("Index")); }