I am building an application for the first time using ASP.NET MVC/Web API that has multiple user accounts with 'UserId', 'AccountId', 'ClientId' and 'EventId' as identifying fields. I am able to login the user, retrieve the UserId, but I cannot figure out how to get the AccountId, ClientId and EventId based on the logged in user.
object id = User.Identity.GetUserId();
ViewData["Id"] = id;
I have looked everywhere for help on this issue. I thought that it would be pretty straight forward but I have yet to find an answer. Thanks!