I have 2 models:
public class Person
{
public int PersonID { get; set; }
public string PersonName { get; set; }
}
public class Order
{
public int
Beside of one view model in asp.net you can also make multiple partial views and assign different model view to every view, for example:
@{
Layout = null;
}
@model Person;
then another partial view Model for order model
@{
Layout = null;
}
@model Order;
then in your main view load both partial view by