You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: