private async void LogOutExcute() { await CheckBusy(async() => { SqLiteService.DeleteAll <UserModel>(); SqLiteService.DeleteAll <NotificationModel>(); App.Settings.IsLogin = false; IsAdmin = false; UserInfo = null; IsLogin = false; SqLiteService.Update(App.Settings); }); }
private async void LogoutExecute() { await CheckBusy(async() => { SqLiteService.DeleteAll <UserModel>(); // Navigate to Login page await DeviceExtension.BeginInvokeOnMainThreadAsync(async() => { await Navigation.NavigateAsync(new Uri($"{ManagerPage.NavigationHomeUri}/{ManagerPage.LoginPage}")); }); }); }