I am just trying to learn expandoobjects in mvc4.
I have a model say
pulic class A
{
public string FirstName{ get; set; }
public string LastName{ get; set; }
public System.DateTimeOffset DOB {get; set; }
}
say I have another model
pulic class B
{
public string JobTitle{ get; set; }
public System.DateTimeOffset FromDate { get; set; }
public System.DateTimeOffset ThruDate {get; set; }
}
I have controllers for each model. Now I will have a single view to list all the items of either model 'A' or model 'B'.
I heard that we can achieve this using expandoobjects, I should be able to written list of items of model 'A' or model 'B' to that single view and that view should display its content. Im missing how to start with this using expandoobjects.
Can somebody give some start pls?