2
I’ve been developing in ASP.NET MVC5 for 1 year and 2 months, and to this day I can’t quite understand who calls who. Researching further, I found that answer that says(in free translation):
Lifecycle of an HTTP request:
User makes HTTP request;
The controller intercepts;
The controller calls the appropriate service;
The service calls the appropriate DAO which returns some persistent data (for example);
The service handles the data and returns to the controller;
The controller stores the data in the model and calls the view;
View populates with model data and returns HTTP request.
What would that be service ? Currently I call static classes that do the processing, save and recover data from the database, this would be the same thing as these services?