title: Convert model to list before passing it to view
body: <p>I got this model in my project:</p>
  
  <pre><code>public class ListOfProducts
      {
          public List&lt;string&gt; ProductNames { get; set; }       
          public List&lt;string&gt; ProductUrls { get; set; }
  
      }
  </code></pre>
  
  <p>The way I pass it to my view is:</p>
  
  <pre><code> public ActionResult Index()
          {
              var listOfUrls = GetListOfHrefs();    //Methods for giving values
              var listOfProductNames = GetListOfProductNames();//Methods for giving values
              var model = new ListOfProducts {ProductUrls = listOfUrls, ProductNames = listOfProductNames, ProductGtin = listofGti};
  
  
              return View(model);
          }
  </code></pre>
  
  <p>I would like to pass my model to the view as a list in order to loop through it the way i Want...Can I convert my model to a list before passing it?</p>
  
  <p>Tried <code>model.Tolist(</code>) but the intellisense could no find the <code>Tolist-Part</code></p>
  
  <p>EDIT:</p>
  
  <p>I really need to acess both properties in the same context..In this case the <code>Artice</code></p>
  
  <pre><code> &lt;article id="post-62" class="post-62 x-portfolio type-x-portfolio status-publish has-post-thumbnail hentry has-post-thumbnail x-portfolio-5e9a5c5e0b6c2e1342bfccc9cacb084f x-portfolio-3ce959340d6fed7ed4f041884b46387c"&gt;
  
                  &lt;div class="entry-wrap cf"&gt;
                      &lt;header class="entry-header"&gt;
                          &lt;h2 class="entry-title entry-title-portfolio"&gt;
                             &lt;p&gt;@product&lt;/p&gt;
                          &lt;/h2&gt;
                      &lt;/header&gt;
                  &lt;/div&gt;
                  &lt;p&gt;@url&lt;/p&gt;
                  &lt;span class="visually-hidden"&gt;&lt;span class="author vcard"&gt;&lt;span class="fn"&gt;addiadmin&lt;/span&gt;&lt;/span&gt;&lt;span class="entry-title"&gt;Gluten &amp;#038; Mjölkfri Raggmunk&lt;/span&gt;&lt;time class="entry-date updated" datetime="2014-05-21T08:23:32+00:00"&gt;05.21.2014&lt;/time&gt;&lt;/span&gt;
  
  
  
              &lt;/article&gt;
  </code></pre>