code: int userId = int.Parse(User.FindFirstValue(ClaimTypes.NameIdentifier)); the code above return null cannot find out why
code:
int userId = int.Parse(User.FindFirstValue(ClaimTypes.NameIdentifier));
the code above return null cannot find out why