-
-
Notifications
You must be signed in to change notification settings - Fork 748
Controller endpoint expects a ViewModel class as parameter (input) #257
Copy link
Copy link
Open
Description
Hello,
I have a question related to cases when a controller endpoint expects a ViewModel as a parameter instead of many primitive parameters. For example, when you have a CRUD page that creates an entity with 6 properties. It will be better to create an endpoint that accepts a ViewModel class that contains these 6 properties than an endpoint that expects 6 parameters.
How this data will be passed to the use case since the Application Layer doesn't have reference to the ViewModels classes? How this transformation between ViewModel and Entity can be made?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels