static void Main(string[] args) { //fetch student record based on his roll no from the database StudentModel 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(); Console.WriteLine("Hello World!"); }
public StudentController(StudentModel model, StudentView view) { this.model = model; this.view = view; }