Controller or model: who should implement business methods in MVC?

I read from here:

http://www.dotnetjohn.com/articles.aspx?articleid=287

The controller represents the business logic of the application. A model is that component that maintains the state of objects.

But if I read the original MVC paper, this is not the same in my opinion: http://heim.ifi.uio.no/~trygver/1979/mvc-2/1979-12-MVC.pdf

As I understand it, the controller is similar to the traffic code, the model, since it represents knowledge, must implement business methods.

What is your opinion?

+3
source share
2 answers

, -, . - , . MVC - . , - , , , -, .

+8

MVC, , - "", . , "ViewModel" .

+3

Source: https://habr.com/ru/post/1779767/


All Articles