title: How to fill list using Mvc 3 razor?
body: <p>I am a new in Asp.net Mvc3. How can I show list using Test method but I can not write @product.Test().</p>
  
  <p>VIEW:</p>
  
  <pre><code>
  @model IList&#60;MvcApplicationScottGu.Models.ProductModel&#62;
  
  @{
      Layout = "~/Views/Shared/_Layout.cshtml";
      ViewBag.Title = "Product";
  }
  
  &#60;h2&#62;Product&#60;/h2&#62;
  &#60;ul&#62;
  @foreach (var product in Model)
  
        &#60;li&#62;@product.Test()&#60;/li&#62;
  
  &#60;/ul&#62;
  
  </code></pre>
  
  <p>CONTROLLER:</p>
  
  <pre><code>
  namespace MvcApplicationScottGu.Controllers
  {
      public class ProductController : Controller
      {
          //
          // GET: /Product/
  
          public ActionResult Test()
          {
              var products = new ProductModel().GetProduct();
              return View("Product",products);
          }
  
      }
  }
  </code></pre>