Пример #1
0
        public int contarBusquedaTop(Top obj)
        {
            int cantidad = -1;

            try {
                TopDao dao = new TopDao();
                conn     = conexion.conectar();
                cantidad = dao.countSearchMatching(conn, obj);
            } catch (Exception e) {
                cantidad = -1;
            } finally {
                if (conn != null && conn.State == System.Data.ConnectionState.Open)
                {
                    conn.Close();
                }
            }
            return(cantidad);
        }