Joined January 2013
·
Posted to
How to get Current User ID in asp.net MVC 4
over 1 year
ago
The easiest way to get the Current User Id in Asp.Net MVC 4 is
WebSecurity.CurrentUserId
The easiest way to get the Current User Id in Asp.Net MVC 4 is
WebSecurity.CurrentUserId
Or, just to add to my previous comment, you can also use -
WebSecurity.GetUserId(User.Identity.Name)