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