Example #1
0
 public void EditarCAD(ClienteAlDetalle CAD)
 {
     try
     {
         using (TransactionScope scope = new TransactionScope())
         {
             DAL.Modapie.Mantenimiento.Instancia.EditarCAD(CAD);
             scope.Complete();
         }
     }
     catch (Exception ee)
     {
         throw;
     }
 }
Example #2
0
 public void InsertarClienteAlDetalle(ClienteAlDetalle clienteAlDetalle)
 {
     try
     {
         using (TransactionScope scope = new TransactionScope())
         {
             DAL.Modapie.Mantenimiento.Instancia.InsertarClienteAlDetalle(clienteAlDetalle);
             scope.Complete();
         }
     }
     catch (Exception ee)
     {
         throw;
     }
 }
Example #3
0
        public ClienteAlDetalle buscarCAD(string dni)
        {
            ClienteAlDetalle cad = new ClienteAlDetalle();

            try
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    cad = DAL.Modapie.Mantenimiento.Instancia.buscarCAD(dni);
                    scope.Complete();
                    return(cad);
                }
            }
            catch (Exception ee)
            {
                DialogResult d = MessageBox.Show(ee.Message.ToString());
                return(null);
            }
        }