title: How to get current user, and how to use User class in MVC5?
body: <ul>
  <li>How can I get the id of the currently logged in user in <strong>MVC 5</strong>? I tried the StackOverflow suggestions, but they seem to be not for MVC 5. </li>
  <li>Also, what is the MVC 5 best practice of assigning stuff to the users? (e.g. a <code>User</code> should have <code>Items</code>. Should I store the User's <code>Id</code> in <code>Item</code>? Can I extend the <code>User</code> class with an <code>List&lt;Item&gt;</code> navigation property?</li>
  </ul>
  
  <p>I'm using "Individual User Accounts" from the MVC template.</p>
  
  <p>Tried these:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/1045197/how-do-i-get-the-current-user-in-an-mvc-application">How do I get the current user in an MVC Application?</a></li>
  <li><a href="https://stackoverflow.com/questions/263486/how-to-get-current-user-in-asp-net-mvc">How to get the current user in ASP.NET MVC</a></li>
  <li><a href="https://stackoverflow.com/questions/13994967/get-logged-in-users-id">Get logged in user&#39;s id</a> - this throws the following:</li>
  </ul>
  
  <blockquote>
    <p>'Membership.GetUser()' is null.</p>
  </blockquote>