示例#1
0
 public void InsertarVentaAlxMayor(VentaAlxMayor ventaAlxMayor)
 {
     try
     {
         using (TransactionScope scope = new TransactionScope())
         {
             DAL.Modapie.Mantenimiento.Instancia.InsertarVentaAlxMayor(ventaAlxMayor);
             scope.Complete();
         }
     }
     catch (Exception ee)
     {
         throw;
     }
 }
示例#2
0
        public VentaAlxMayor buscarUltimaVenta()
        {
            VentaAlxMayor ventaAlxMayor = new VentaAlxMayor();

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