public int AgregarCirugiaPaquete(CirugiaPqtFinanciero cirugiaPaquete) { try { ServicioCirugiaPaqueteFinanciero servicio = new ServicioCirugiaPaqueteFinanciero(); CirugiaPqtFinancieroServicio cirugiaPaqueteServicio = new CirugiaPqtFinancieroServicio(); cirugiaPaqueteServicio.Cirugia = new Proxy.ProxyCirugiaPaqueteFinanciero.Cirugia(); cirugiaPaqueteServicio.Cirugia.Id = cirugiaPaquete.Cirugia.Id; cirugiaPaqueteServicio.Cirujano = new Proxy.ProxyCirugiaPaqueteFinanciero.Cirujano(); cirugiaPaqueteServicio.Cirujano.Id = cirugiaPaquete.Id; cirugiaPaqueteServicio.Descuento = cirugiaPaquete.Descuento; cirugiaPaqueteServicio.FechaOperacion = cirugiaPaquete.FechaOperacion; cirugiaPaqueteServicio.MontoCirujano = cirugiaPaqueteServicio.MontoCirujano; cirugiaPaqueteServicio.Nombre = cirugiaPaquete.Nombre; cirugiaPaqueteServicio.Protesis = cirugiaPaquete.Protesis; return servicio.AgregarCirugiaPaquete(cirugiaPaqueteServicio); } catch (Exception) { return -1; } }
/// <remarks/> public System.IAsyncResult BeginAgregarCirugiaPaquete(CirugiaPqtFinanciero cirugiaPqtFinanciero, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AgregarCirugiaPaquete", new object[] { cirugiaPqtFinanciero}, callback, asyncState); }
/// <remarks/> public void AgregarCirugiaPaqueteAsync(CirugiaPqtFinanciero cirugiaPqtFinanciero) { this.AgregarCirugiaPaqueteAsync(cirugiaPqtFinanciero, null); }
/// <remarks/> public void AgregarCirugiaPaqueteAsync(CirugiaPqtFinanciero cirugiaPqtFinanciero, object userState) { if ((this.AgregarCirugiaPaqueteOperationCompleted == null)) { this.AgregarCirugiaPaqueteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAgregarCirugiaPaqueteOperationCompleted); } this.InvokeAsync("AgregarCirugiaPaquete", new object[] { cirugiaPqtFinanciero}, this.AgregarCirugiaPaqueteOperationCompleted, userState); }
public int AgregarCirugiaPaquete(CirugiaPqtFinanciero cirugiaPqtFinanciero) { object[] results = this.Invoke("AgregarCirugiaPaquete", new object[] { cirugiaPqtFinanciero}); return ((int)(results[0])); }