How to call two views in one of asp.net

0

Friends who can help me what happens is that I want to fill two forms of different views in one single view of Asp.Net Thanks!

    
asked by Yhonatan Montenegro 19.11.2018 в 01:20
source

1 answer

0

You must use ViewModels since asp.net views based on model only support one at a time, in your case you should create a viewmodel that contains the fields of both models involved and then create your form based on the viewmodel . I recommend you take a look at this answer where I exolcise it more detailed, I hope you find it useful [ ASP MVC Multiple Form

    
answered by 20.11.2018 в 14:51