public async void AddRegistration(string email, string password){
			var database = new LoginTable ();
			LoginDetails details = new LoginDetails (email, password);
			database.InsertOrUpdate (details);

			//await DisplayAlert ("Alert", "Registered Successfully: " + database.GetItems().Count.ToString(), "OK");
		}
Exemple #2
0
 public int InsertOrUpdate(LoginDetails details)
 {
     return 	database.Table<LoginDetails> ().Where (
         x => x.Email == details.Email).Any ()
         ? database.Update (details) : database.Insert (details);
 }