public static void Start() { //fetch student record based on his roll no from the database Student model = RetriveStudentFromDatabase(); //Create a view : to write student details on console StudentView view = new StudentView(); StudentController controller = new StudentController(model, view); controller.UpdateView(); //update model data controller.SetStudentName("John"); controller.UpdateView(); }
public StudentController(Student model, StudentView view) { this._model = model; this._view = view; }