async void AgregarTapped(object sender, System.EventArgs e) { try { Pago pagoIngresado = new Pago(); Pago pago = new Pago() { CUE_CODIGO = ((Cuenta)pkrCuentas.SelectedItem).CUE_CODIGO, SER_CODIGO = ((Servicio)pkrServicios.SelectedItem).SER_CODIGO, PAG_MONTO = Convert.ToDecimal(txtMonto.Text), PAG_FECHA = DateTime.Now }; if (string.IsNullOrEmpty(txtMonto.Text)) { await DisplayAlert("Monto", "Complete el espacio", "Ok", "Cancel"); } ; pagoIngresado = await pagosManager.Ingresar(pago); CargarDatos(); await DisplayAlert("Pagos", "Pago agregado correctamente", "Ok", "Cancel"); } catch (System.Exception ex) { await DisplayAlert("Pagos", "Error" + ex.Message, "Ok", "Cancel"); } }