title: should I be using an @html.renderpartial or @html.renderaction
body: <p>I'm trying to bring in my menu.</p>
  
  <p>In my _Layout.cshtml page I have</p>
  
  <pre><code>&lt;div class="wrapper"&gt;
                  &lt;!-- Navigation --&gt;
  
                    @Html.RenderAction("Navigation", "Nav")
  </code></pre>
  
  <p>The Nav Controller looks like this</p>
  
  <pre><code>public ActionResult Navigation()
  {
      var pages = pageRepository.Pages;
      return View(pages);
  }
  </code></pre>
  
  <p>The Navigation View Looks like this</p>
  
  <pre><code>@model IEnumerable&lt;Site.Domain.Entities.Page&gt;
  @{
      Layout = null;
      List&lt;Site.Domain.Entities.Page&gt; pages = new List&lt;Site.Domain.Entities.Page&gt;();
  
      foreach(var page in Model)
      {
          pages.Add(page);
      }
  }
  
  @foreach (var link in Model)
  {
      if (link.ParentPage == "Home")
      { 
      &lt;li&gt;@link.PageTitle&lt;/li&gt;
      &lt;ul&gt;
          @foreach (var subLink in pages)
          {
              if (subLink.ParentPage == link.PageTitle)
              { 
              &lt;li&gt;@subLink.PageTitle&lt;/li&gt;
              }
          }
      &lt;/ul&gt; 
  
      }
  }
  </code></pre>
  
  <p>The view works fine when I go to .../nav/navigation</p>
  
  <p>What I'm trying to do is bring this into my _Layout page so that I can use it as my menu.</p>
  
  <p>I continue to get an error with @Html.RenderAction("Navigation", "Nav")</p>
  
  <p>The error says <strong><em>"The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments"</em></strong></p>
  
  <p>Should I be using this as a partial? What is the best way to go about this?
  Thanks for any advice!</p>