public ActionResult Show(int studentId) { StudentDataController controller = new StudentDataController(); Student student = controller.FindStudent(studentId); return(View(student)); }
public ActionResult List() { StudentDataController controller = new StudentDataController(); IEnumerable <Student> students = controller.ListStudents(); return(View(students)); }