c# mvc model vs viewbag

后端 未结 5 1255
滥情空心
滥情空心 2020-12-20 12:36

Suppose you have a list of People A and a list of People B in a page. And these two are seperate classes in L2S, representing two different tables. Therefore, you cannot pas

5条回答
  •  借酒劲吻你
    2020-12-20 13:20

    Creating a ViewModel specific to the page, as your option 3 is the way I would do it.

    I believe this is also the recommended approach.

提交回复
热议问题