public ActionResult InactiveClass(int id) { var clss = ClassBO.GetClassByID(id); clss.IsActive = false; ClassBO.UpdateExist(clss); return(RedirectToAction("Index")); }