public async Task <IViewComponentResult> InvokeAsync()
        {
            var user = _authenticationService.GetAuthenticatedUser();

            var viewModel = new HeaderViewModel
            {
                UserIsAuthenticated = user != null,
                UserName            = user?.Login
            };

            return(View(viewModel));
        }
        public IActionResult Settings()
        {
            var user           = _authenticationService.GetAuthenticatedUser();
            var speekerProfile = _dataContext.MicrosoftSpeekerIdentificationProfiles.FirstOrDefault(p => p.UserId == user.Id);

            _dataContext.MicrosoftFaceIdentificationPersonFaces.Load();
            var faceProfile = _dataContext.MicrosoftFaceIdentificationPersons.FirstOrDefault(p => p.UserId == user.Id);

            return(View(new SettingsViewModel
            {
                Id = user.Id,
                Login = user.Login,
                MicrosoftFaceIdentificationProfileId = faceProfile?.Id,
                MicrosoftSpeekerIdentificationProfileId = speekerProfile?.Id,
                Faces = faceProfile?.Faces.Select(f => (f.Id, $"data:image/png;base64,{Convert.ToBase64String(f.Data)}")),
                RemainingSpeechTime = speekerProfile?.RemainingSpeechTime
            }));