public ActionResult RemoveStudent(int ClassId, int StudentId) { var adminRole = new AdminRole(); var ViewValue = adminRole.RemoveStudent2(adminRole.GetClass(ClassId), adminRole.GetStudent(StudentId)); return(RedirectToAction("Details", new { ClassId = ClassId })); }