What should I do, when I need one ViewModel class to be passed to the asp-page (containing various data to display) and another Model class I need to be submitted (through the form tag) back to the server?
What should I do, when I need one ViewModel class to be passed to
Share
Nest the “Other View Model” inside the main View Model. Then bind the controls of the form to the sub-model’s properties.
Action Method Signature: