views:

8

answers:

0

Hi,

I am wandering what pattern to use for an area in my website that has several sub headings, which corresponding models. Say this is several parts of user data, which I have in several tables - like the ASP membership user table, a table with additional user information, and a table which may have several items to show for each user, like shipping addresses.

I am using Entity Framework Code First, so each table corresponds to a class in my model.

I would like to use a type of ajax accordion UI in which each sub heading opens and closes. How do I integrate this into the MVC model? Is the only way to create a model class that has the different sub elements as contained classes?