title: Rendering partial views with Razor in MVC5
body: <p>I'm trying to get a partial view to render using Razor in MVC5. When I use</p>
  
  <pre><code>@{ Html.RenderPartial("ViewName", model); }
  </code></pre>
  
  <p>I get the parser error:</p>
  
  <blockquote>
    <p>Unexpected "{" after "@" character. Once inside the body of a code block (@if {}, @{}, etc.) you do not need to use "@{" to switch to code.</p>
  </blockquote>
  
  <p>When I remove the <code>{}</code>, i.e.:</p>
  
  <pre><code>@Html.RenderPartial("ViewName", model);
  </code></pre>
  
  <p>I get the compilation error</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'void' to 'object'.</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>