private async void doRegistration() { registration = new Registrations(); registrationServices = new RegistrationServices(); registration.norm = Preferences.Get("noRM", ""); registration.tglreg = dtTglPeriksa.Date.ToShortDateString(); registration.kodedokter = App.KodeDokterRegis; registration.kodeklinik = App.KodeKlinikRegis; try { registrationResults = new RegistrationResults(); registrationResults = await registrationServices.postRegistration(registration); } catch (Exception ex) { await PopupNavigation.Instance.PushAsync(new DialogAlertCustom("Error", ex.Message)); } if (registrationResults.response.ToString() == "gagal") { await PopupNavigation.Instance.PushAsync(new DialogAlertCustom("Warning", registrationResults.deskripsiresponse)); } else { await PopupNavigation.Instance.PushAsync(new DialogAlertCustom("Sukses", registrationResults.deskripsiresponse)); } }