private void GoLogin() { MercadoModel UsuarioLogando = new MercadoModel(); UsuarioLogando = Service.Service.LoginMercadoService(Login.email, Login.senha); if (UsuarioLogando.cnpj != null) { //VARIAVEIS PROPERTIES App.Current.Properties["IsLoggedIn"] = Boolean.TrueString; App.Current.Properties["UserType"] = "Mercado"; App.Current.Properties["Cnpj_user"] = UsuarioLogando.cnpj; Application.Current.SavePropertiesAsync(); //SALVANDO USUARIO LOGADO NO SQLITE ComunicacaoBanco database = new ComunicacaoBanco(); database.InsereUsuarioMercado(UsuarioLogando); //App.Current.MainPage = new PerfilMercadoView(); //App.Current.MainPage.Navigation.PushAsync(new PerfilMercadoView()); App.Current.MainPage = new NavigationPage(new PerfilMercadoView()); } else { App.Current.MainPage.DisplayAlert("ATENCAO", "Falha Login", "OK"); } }