My exhibition architecture like this:
The Web project contains an MVC view and WebAPI controls that return something and receive something. The Domain project includes a domain model The Core project includes DTOs from microservices and services, with whom they communicate
Where to put models view now?
- In a Web project, and there map the domain to the viewmodel - it is only for presentation and data reception
- In the Core project and servicing WebApi controllers, you should already return viewmodels - domain, viewmodel and DTO services.
What do you recommend? What is your opinion? Maybe there is a standard?