I’m working on a ASP.NET Web Application and I want to create clear architecture using MVP.
Because of the application type there are AJAX requests from the View to the back-end of the website. I’m wondering will it be legal MVP if I’m making AJAX requests to a WebService (which will act like a Presenter) which will control the business logic using the Models and return the result as serialized data to the View?
Thanks in advance!
Isn’t the AJAX sort of acting as the presenter?
Correct me if I am wrong, but I used to think a Presenter holds a reference to a
Display(which is an interface to the view) and therefore populates the view. The web service, however, is queried and returns a result, which looks like an MVP Model to me…