Open csharpfritz opened 2 years ago
Introduce configuration to allow mapping from the datasource to a ViewModel, and mapping from the ViewModel to the datasource
Using Automapper may be the preferred technique here
Very good idea. Should we rather refer to them as Data Transfer Objects (DTOs), and not ViewModels?
I think you're right @ChristianWeyer - in APIs they're DTOs since there is no UI
Introduce configuration to allow mapping from the datasource to a ViewModel, and mapping from the ViewModel to the datasource
Using Automapper may be the preferred technique here