public ActionResult Delete(int id) { // Check that the method is working Debug.WriteLine("The DLETE Method is running and has deleted CLASSID " + id); // Instantiating ClassDataController controller = new ClassDataController(); controller.DeleteClass(id); return(RedirectToAction("List")); }