InstantAPIs icon indicating copy to clipboard operation
InstantAPIs copied to clipboard

Allow mapping of data to a ViewModel

Open csharpfritz opened this issue 3 years ago • 2 comments

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

csharpfritz avatar Feb 27 '22 14:02 csharpfritz

Very good idea. Should we rather refer to them as Data Transfer Objects (DTOs), and not ViewModels?

ChristianWeyer avatar Feb 27 '22 15:02 ChristianWeyer

I think you're right @ChristianWeyer - in APIs they're DTOs since there is no UI

csharpfritz avatar Feb 27 '22 15:02 csharpfritz