How do we get the current user, within an secure ApiController action, without passing the userName or userId as a parameter?
We assume that this is available, beca
You can also access the principal using the User property on ApiController.
So the following two statements are basically the same:
string id; id = User.Identity.GetUserId(); id = RequestContext.Principal.Identity.GetUserId();