コード例 #1
0
 public IList<MetodoImpresion> ObtenerTodos()
 {
     IList<MetodoImpresion> metodos;
     try
     {
         daMetodoImpresion = new daMetodoImpresion();
         daMetodoImpresion.AbrirSesion();
         metodos = daMetodoImpresion.ObtenerTodos();
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         daMetodoImpresion.CerrarSesion();
     }
     return metodos;
 }
コード例 #2
0
 public IList<MetodoImpresion> ObtenerActivos()
 {
     IList<MetodoImpresion> metodos;
     try
     {
         daMetodoImpresion = new daMetodoImpresion();
         daMetodoImpresion.AbrirSesion();
         List<object[]> filtros = new List<object[]>();
         filtros.Add(new object[] { "activo", true });
         metodos = daMetodoImpresion.ObtenerLista(filtros);
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         daMetodoImpresion.CerrarSesion();
     }
     return metodos;
 }