How can I call three models in a view in MVC? [Resolved]

Posted by Jitendrasoft09 under ASP.NET MVC on 7/1/2017 | Points: 10 | Views : 199 | Status : [Member] [MVP] | Replies : 1
I have created three models and wanted to call three models in a view. How we can do this one?

Jitendra Kumar
If my post helps you, plz mark as an answer.



Responses

Posted by: A2H on: 7/1/2017 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
You can use ViewModel to hold data from three models and then pass it on to view
You can check the below links for more details
http://www.dotnetfunda.com/forums/show/20853/how-do-i-display-data-from-a-view-in-the-database
http://sampathloku.blogspot.com/2012/10/how-to-use-viewmodel-with-aspnet-mvc.html

Thanks,
A2H
My Blog

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response