public async void GetUserRegistrationbyEmail(string apikey, string sott, string verificationurl, UserIdentityCreateModel user) { await UserRegistrationbyEmailAPI.GetUserRegistrationbyEmail(apikey, sott, verificationurl, "", user, response => { Toast.MakeText(this, "Please Verify Your Email Address", ToastLength.Long).Show(); // Success event }, (error) => { Toast.MakeText(this, error.description, ToastLength.Long).Show(); // Failure event }); }
async void OnSignUpButtonClicked(object sender, EventArgs e) { UserIdentityCreateModel user = new UserIdentityCreateModel(); user.FirstName = firstnameEntry.Text; user.Password = passwordEntry.Text; Email email1 = new Email(); email1.Type = "Primary"; email1.Value = emailEntry.Text; user.Email = new List <Email>(); user.Email.Add(email1); // Sign up logic goes here await UserRegistrationbyEmailAPI.GetUserRegistrationbyEmail(apiKey, sott, "", "", user, response => { DisplayAlert("Alert", "hello Registration is Sucessfull", "OK"); Navigation.InsertPageBefore(new MainPage(), Navigation.NavigationStack.First()); Navigation.PopToRootAsync(); // Success event }, (error) => { messageLabel.Text = error.description; // Failure event }); }