I\'ve defined a temp variable to get current user id, it always returns null.
Here is the snapshot:
Why?
UPDATE:
Simply try this :
string userId = SignInManager .AuthenticationManager .AuthenticationResponseGrant.Identity.GetUserId();