There are three ways to pass information from a controller to a view in ASP.NET MVC 3 and above:

  1. As a strongly typed model object.

@model IEnumarable<<MVCAppNamespace>.Controller.<ModelName>>

@foreach (var item in Model) { 

}

  1. As a dynamic type (using @model dynamic)

@model dynamic

@foreach (var item in Model) { 

}

  1. Using the ViewBag

@foreach (var item in ViewBag.<<ModelName>>) { 

}