/// <summary>
        /// Atsijungimo komandos implementavimas
        /// </summary>
        public void LogOutImpl()
        {
            _core.IsUserLoggedIn = false;
            _client.DefaultRequestHeaders.Remove("Authorization");

            _mainWindow.FloatingPasswordBox.Password = "";
            LogInButtonVisibility  = Visibility.Visible;
            LogOutButtonVisibility = Visibility.Collapsed;
            UpdateMainWindow.Invoke(this, EventArgs.Empty);
        }
        /// <summary>
        /// Prisijungimo komandos implementavimas
        /// </summary>
        public async Task LogInImpl()
        {
            var token = await LoginHelper.SendLoginRequest(UserName, _mainWindow.FloatingPasswordBox.Password, _client);

            if (token == null)
            {
                ErrorMessage = "Blogi prisijungimo duomenys";
                WrongCredentialsVisibility = Visibility.Visible;

                return;
            }

            _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
            _core.IsUserLoggedIn          = true;
            _mainWindow.DialogHost.IsOpen = false;
            UpdateMainWindow.Invoke(this, EventArgs.Empty);
            ChangeVisibilityAfterLogIn();
        }