public async void RegisterMethod() { var user = new User { UserName = UserNameTxt.ToLower(), Password = PasswordTxt.ToLower(), Email = EmailTxt.ToLower(), PhoneNumber = PhoneNumberTxt.ToLower() }; await App.Database.SaveUserAsync(user); await Application.Current.MainPage.DisplayAlert("Datos guardados", "Bienvenido" + userName.ToString(), "Acectar"); await Application.Current.MainPage.Navigation.PushAsync(new LoginPage()); #endregion }