示例#1
0
        protected async Task <User> GetCurrentUser()
        {
            string email = User.FindFirst(ClaimTypes.Email)?.Value;

            return(await UserManager.FindByEmailAsync(email));
        }