New MVC4 application created UserProfile table :
UserId(int) | UserName(nvarchar)
In controller :
string currentUser = User.Identity.Name; // returns UserName
var mu1 = Membership.GetUser(); // returns null
var mu2 = Membership.GetUser(currentUser); // returns null as well
I read a lot of threads and they all talk about getting Guid, which I don't even have in user and membership tables.
Is there a way to get the UserId (int) of currently logged in User ?