Пример #1
0
        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;
            }
        }
Пример #2
0
 /// <remarks/>
 public System.IAsyncResult BeginAgregarPagos(Pago pago, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("AgregarPagos", new object[] {
                                                              pago}, callback, asyncState);
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <remarks/>
 public void AgregarPagosAsync(Pago pago)
 {
     this.AgregarPagosAsync(pago, null);
 }
Пример #5
0
 public bool AgregarPagos(Pago pago)
 {
     object[] results = this.Invoke("AgregarPagos", new object[] {
                                                                     pago});
     return ((bool)(results[0]));
 }