Beispiel #1
0
 public void InsertarVentaDetalle(VentaAlDetalle ventaDetalle)
 {
     try
     {
         using (TransactionScope scope = new TransactionScope())
         {
             DAL.Modapie.Mantenimiento.Instancia.InsertarVentaDetalle(ventaDetalle);
             scope.Complete();
         }
     }
     catch (Exception ee)
     {
         throw;
     }
 }
Beispiel #2
0
        public VentaAlDetalle buscarUltimaVentaDetalle()
        {
            VentaAlDetalle ventaAlDetalle = new VentaAlDetalle();

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