ASP.NET MVC2 displaying 2 lists of data in a strongly typed view
问题 I am having difficulties displaying a list of data that incoporates two database objects. My view is strongy typed to a view model that includes a list of customers and a list of customer sites (each stored in their own table). Im currently using two for each statments to render both lists, but really i need one list that contains both objects, in a nutshell its a list of customer sites that also contains customer names from the customer table. This is my viewmodel namespace CustomerDatabase