So, I've been pulling my hair out trying to get the user id out of my application. I'm using the Visual Studio 2013 Preview for Web. I know back in the day, you'd call the Membership object and get the Username or ID out of that. I'm trying to get the User ID so I can add a user to a role calling IdentityConfig.Roles.AddUserToRole. I came close when I tried instantiating a new <ProjectName>.Models.IdentityModels.User user = new Models.IdentityModels.User(); using the blank constructor, but it didn't give me the current user, just a random id. It's a webform project, if that helps (it's not supposed to make a difference now, is it?).
PS, the Context.Current.User and Page.User give me the UserName, but not the ID.
Thanks for any help you guys can give.