Get Current UserId in ASP.NET MVC5

  var userId = User.Identity.GetUserId(); 

You must add this namespace :)

using Microsoft.AspNet.Identity;