Click here to Skip to main content
15,885,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use a view with Two Models or more in the same time?

I tried to create:
@model IEnumerable<MvcMusicStore.Models.Employee
@model IEnumerable<MvcMusicStore.Models.Department;
But it just allow 1 model per time..
How to use tow models in one view??
Posted
Updated 6-Aug-14 21:44pm
v2
Comments
NowYouSeeMe 14-Aug-14 4:56am    
create a viewmodel combaining two models n use that view model instead

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900