public async Task <IActionResult> Get()
        {
            var operationResponse = await _userProfilesService.GetByUserIdAsync();

            if (operationResponse.IsSuccess)
            {
                return(Ok(operationResponse));
            }
            return(NotFound());
        }
        public async Task InvokeAsync(HttpContext context, IUserProfilesService userProfilesService)
        {
            if (context.User.Identity.IsAuthenticated)
            {
                var userProfile = await userProfilesService.GetByUserIdAsync();

                if (userProfile.Record != null)
                {
                    var role = userProfile.Record.IsOrganizer ? "organizer" : "user";
                    context.User.AddIdentity(new ClaimsIdentity(new Claim[] {
                        new Claim(ClaimTypes.Role, role)
                    }));
                }
            }
            await _requestDelegate(context);
        }