title: how do i use this linq query to display data using foreach loop in MVC
body: <p>I am not sure how to achieve this. I want to use a foreach loop in my view to display the data in a tabular format. This data will come from a linq query that uses 3-4 tables and selects different fields to display. Not sure how to return this as i get an anonymous type error.</p>
  
  <pre><code>var info = from s in context.LennoxSurveyResponses
                         join customers in context.Customers on s.SurveyCode equals customers.SurveyCode
                         join lists in context.CustomerLists on customers.ListId equals lists.ListId
                         join dealer in context.Channels on lists.ChannelId equals dealer.ChannelId
                         where dealer.ChannelId == id
                         select new
                         {
                             ResponseId = s.ResponseId,
                             CustomerFirstName = customers.FirstName,
                             CustomerLastName = customers.LastName,
                             CustomerTestimonial = s.Question5Answer
                         };
  </code></pre>
  
  <p>What would my model have to declare so that can be passed to view?</p>