Show multiple models in a single view using ViewModel in Razor MVC3 (with only Details in view)

前端 未结 2 1536
半阙折子戏
半阙折子戏 2021-01-19 20:09

My task is to show multiple models into a single view.I\'ve created a ViewModel for my requirement but I\'m not meeting my requirement. please have

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 20:53

    Is there in your view declared that you are receiving model of type

    In view:

    @model IEnumerable
    

提交回复
热议问题