views:

19

answers:

0

I'm new and learning on how to use MVP - Model View Presenter. In basic terms MVP was derived from MVC patterns. I have a project solutions named Model, Controller, Presenter and UI. Model, Controller and Presenter are reference to each other as the MVC pattern and UI will reference the Controller.

How can I display the data to UI which was fetched from Model or from the Controller and pass through Presenter? Since UI was not reference to Model or Controller. It says "You must add a reference to assembly Controller/Model"

Here's the code: // From UI StudentP presenter = new StudentP(); StudentP.StudentData data = presenter.GetStudentId("34-2344-22");

Am I missing something? Or I may misunderstood the the MVP pattern? Please help...