title: How to use C# nameof() with ASP.NET MVC Url.Action
body: <p>Is there a recommended way to use the new </p>
  
  <pre><code>nameof()
  </code></pre>
  
  <p>expression in ASP.NET MVC for controller names?</p>
  
  <pre><code>Url.Action("ActionName", "Home")  &lt;------ works
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>Url.Action(nameof(ActionName), nameof(HomeController)) &lt;----- doesn't work
  </code></pre>
  
  <p>obviously it doesn't work because of <strong>nameof(HomeController)</strong> converts to <strong>"HomeController"</strong> and what MVC needs is just <strong>"Home"</strong>.</p>