public async void LogOut()
        {
            IsLogedIn = false;
            User      = null;

            await _tmsApiServiceBase.FinalizeSession();

            await _navigationService.NavigateAsync("/LoginPage");
        }
Ejemplo n.º 2
0
        private async void ExitCommandHandler()
        {
            if (await _notificationService.AskQuestionAsync("Deseja sair do sistema?", SoundEnum.Alert))
            {
                await _tmsApiServiceBase.FinalizeSession();

                System.Diagnostics.Process.GetCurrentProcess().CloseMainWindow();
            }
        }