I can not find the answer to the following question:
I have a controller, requests from the view come in, the controller runs some sort of script. For example, a new order is created in the domain layer and accepts some default values. How can I throw it into the presentation? The problem is that the controller cannot skip over the script layer and process the domain object with the order. DTO, too, to drive dumb, have to duplicate the field, and in the end I will forget to add the field.

Please tell me what is right in such cases.

  • Is the question still relevant? The question only concerns, say, Android, or not necessarily any particular technology? If not only a specific technology, then explain about the scenarios. The phrase is not clear: "the controller cannot skip over the script layer". Perhaps the question will be clearer if it is presented in greater detail. - Andrey K.
  • The question is relevant. It means multi-layered architecture. - Alexey Malchenko
  • Will this article help? There, the controller sends messages. This is not the only way to organize. I apologize if not the topic. If that, then I will erase this message. - Andrey K.

0