Home  /  Questions  /  Question

50   50
Feb 02, 2015

Model in MVP - who will call service

I am new to MVP and trying to build it for my customer who wants a windows application for his sales agents/employees. I am going to create a set of model classes that represent the objects. I am planning to use same objects for my service as well. this service will set these objects/classes and send it back to front end for use. I am unsure about two things:
1. Are these classes like car (has engine class, array of tyre class, color etc.) Model? I am guessing I dont need model for each view. because view can use what it wants from the model class.
2. How to I call my service on backend? somewhere service call needs to be made. Is it made by presenter or Model?

thanking you.