title: Parentheses inside Razor code block
body: <p>Trying to put a URL.Action call inside a Razor ASP.Net MVC code block at the top of a View which includes a parameter creation - it won't parse and causes an error on the page.
  Seen similar questions where they remove the "@" but I've tried that.
  I am using an Action for the jpg url as it points to a rewriter.</p>
  
  <p>Code placed at the top of the page:</p>
  
  <pre><code>@{
      ViewBag.Title = @Model.event_title + " - Event - HOTSHOE";
      ViewBag.MetaDescription = @Model.event_title + " - HOTSHOE";
      Layout = "~/Views/Shared/_Hotshoe.cshtml";
      ViewBag.MainImage = Url.Action("thumbnail", "Events" , new { id=Model.event_ID }) + "/imagename.jpg";
  }
  </code></pre>
  
  <p>The problematic line is</p>
  
  <pre><code>ViewBag.MainImage = Url.Action("thumbnail", "Events" , new { id=Model.event_ID }) + "/imagename.jpg";
  </code></pre>
  
  <p>In the editor it complains </p>
  
  <blockquote>
    <p>Syntax Error, ',' expected</p>
  </blockquote>
  
  <p>Just after Model.event_ID but before the "}".</p>
  
  <p>This code works on another part of the page outside of the code block with @ in front of @Url.Action and @Model.event_ID</p>
  
  <p>When viewing the page it complains:</p>
  
  <blockquote>
    <p>Compiler Error Message: CS1513: } expected</p>
    
    <p>Source Error:</p>
    
    <p>Line 7476:        } Line 7477:    } Line 7478:}</p>
  </blockquote>
  
  <p>Any ideas ? TIA.</p>