Two models in one view in ASP MVC 3

后端 未结 12 1888
日久生厌
日久生厌 2020-11-22 13:55

I have 2 models:

public class Person
{
    public int PersonID { get; set; }
    public string PersonName { get; set; }
}
public class Order
{
    public int         


        
12条回答
  •  无人及你
    2020-11-22 14:54

    you can't declare two model on one view, try to use Html.Action("Person", "[YourController]") & Html.Action("Order", "[YourController]").

    Good luck.

提交回复
热议问题