KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have two model classes, each is a table in a database. One model is called 'Clothes' and the other 'Shoes'. I want to display the contents of each table in the same razor view, but MVC is only letting me send one model to the view. @model IEnumerable<Test.Models.Clothes> Is there a way to send more than one model to a razor view? If not, what is the normal way to display contents of another model in a view that has already got another model passed to it. Thanks for advice.
Tags (comma-separated)
Save Edits
Cancel