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