I have Api project, business project and database context.
I am thinking of design like this:
- viewmodels in api project, and mappings with automapper. Automapper will here map viewmodel to business dto model
- dto models in business project, and mappings with automapper. Automapper will here map dto model to entity model (database).
Question 1: Should I use OperationViewModel or OperationRequestModel(ResponseModel) in api project?
Question 2: Is additional mapping between viewmodel and dto model overkill, or is it good practice to separate those concerns and decouple even more, or should I map dto models with entity models and use those dto models in api project?