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