Anyway, the solution is very simple using standard MVC programming patterns. One approach is implementing a standard view model design that contains all four models. The View contains all the HTML required to handle the UI. The View will have "if" conditions.
I would implement four separate actions to handle the 4 different POSTs.
Another option is separate views and actions for each modal. You have four actions that populate the views and four actions that accept the POST.
All-Star
53641 Points
24014 Posts
Re: How can I solve this complex problem of Dialogs/Modals and Scripts which includes communicati...
Jan 22, 2021 01:13 PM|mgebhard|LINK
You posted this question in the wrong forum.
Anyway, the solution is very simple using standard MVC programming patterns. One approach is implementing a standard view model design that contains all four models. The View contains all the HTML required to handle the UI. The View will have "if" conditions. I would implement four separate actions to handle the 4 different POSTs.
Another option is separate views and actions for each modal. You have four actions that populate the views and four actions that accept the POST.