public static void LogOff() { SessionCustomerService.DeleteAccount(); Current.MainPage = new NavigationPage(new LoginView()) { BarBackgroundColor = GetBackgroundColor() }; IsLogin = false; }
public static async void ValidateLoginAsync() { try { bool result = await SessionCustomerService.ValidateLoginAsync(); if (result) { IsLogin = true; NavigateToHome(); } else { ShowStartView(); } } catch { ShowStartView(); } }