public bool AgregarPago(Pago pago) { try { ServicioPagos servicio = new ServicioPagos(); PagoServicio pagoServicio = new PagoServicio(); pagoServicio.Monto = pago.Monto; pagoServicio.Nombre = pago.Nombre; pagoServicio.Seguro = pago.Seguro; pagoServicio.TipoPago = pago.TipoPago; pagoServicio.Usuario = new Persona(); pagoServicio.Usuario.Id = pago.Id; return servicio.AgregarPagos(pagoServicio); } catch (Exception) { return false; } }
/// <remarks/> public System.IAsyncResult BeginAgregarPagos(Pago pago, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AgregarPagos", new object[] { pago}, callback, asyncState); }
/// <remarks/> public void AgregarPagosAsync(Pago pago, object userState) { if ((this.AgregarPagosOperationCompleted == null)) { this.AgregarPagosOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAgregarPagosOperationCompleted); } this.InvokeAsync("AgregarPagos", new object[] { pago}, this.AgregarPagosOperationCompleted, userState); }
/// <remarks/> public void AgregarPagosAsync(Pago pago) { this.AgregarPagosAsync(pago, null); }
public bool AgregarPagos(Pago pago) { object[] results = this.Invoke("AgregarPagos", new object[] { pago}); return ((bool)(results[0])); }