private async void OnClicked(object s, EventArgs args) { var a1 = id.Text; var a2 = pass.Text; if (a1 != null && a2 != null) { if (DBActions.GetAdminById(a1) == null) { await DBActions.FullyAddAdmin(new Admins { ID = a1, Password = a2, Login = false }); await App.Send("Info", "Kontot med ID: " + a1 + " har skapats!", "Ok", ManagePage.page); Navigation.PopPopupAsync(); } else { App.Send("Fel", "Kontot " + a1 + " finns redan!", "Avbryt", ManagePage.page); } } else { App.Send("Fel", "Ange id och lösenord.", "Avbryt", ManagePage.page); } }