public ActionResult DeleteClass(int TermCourseId, int ClassId) { if (ClassId != 0) { dao.DeleteClass(ClassId); } return(RedirectToAction("EditSectionDetails", new { TermCourseId = TermCourseId })); }