public async Task <IActionResult> GetCurrentUser() { var userId = _httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; ApplicationUserIdentity user = await _accountAppService.GetUserById(userId); return(Ok(user)); }