static void Main(string[] args) { // Initialise postgres DAO IPostingsDAO DAO = PostgresDAO.Instance(); // Query database for responses var student = new StudentController("Harry", 100.0m, "Undergraduate", DAO); var result = student.search(); // Output the response Console.WriteLine(student.getView()); }
public StudentController(string name, decimal averageMark, string educationLevel, IPostingsDAO jobDAO) { this.model = new Student(name, averageMark, educationLevel); this.view = new StudentView(); this.jobDAO = jobDAO; }