Exemplo n.º 1
0
        public bool EliminarGasto(int IdGasto, out string mensaje)
        {
            GastoDA objGastoDA = new GastoDA();

            try
            {
                using (TransactionScope transaccion = new TransactionScope(TransactionScopeOption.Required))
                {
                    if (objGastoDA.EliminarGasto(IdGasto, out mensaje))
                    {
                        transaccion.Complete();
                        return(true);
                    }
                    else
                    {
                        transaccion.Dispose();
                        return(false);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 public int EliminarGasto(int detaPresupuestoId)
 {
     return(oGastoDA.EliminarGasto(detaPresupuestoId));
 }