title: getting current user name in razor
body: <p>I want to get the current authenticated username in my razor view page, so I use</p>
  
  <pre><code>if (User.Identity.IsAuthenticated)
  {
        &lt;p&gt;Name is @User.Identity.Name&lt;/p&gt;
  }
  </code></pre>
  
  <p>but @User.Identity.Name always shows the id of the user.</p>