public List<CataloValueVO> getCatalog(int padre)
    {
        FVSL_LINQDataContext dbcon = new FVSL_LINQDataContext();

        List<CataloValueVO> lista = new List<CataloValueVO>();

        try
        {

            List<MAPA_GET_CATALOGO_ESTADOSResult> resultset = dbcon.MAPA_GET_CATALOGO_ESTADOS(padre).ToList();

            foreach (MAPA_GET_CATALOGO_ESTADOSResult benef in resultset)
            {
                CataloValueVO catalo = new CataloValueVO();

                catalo.id = benef.Id;
                catalo.value = benef.Nombre;

                lista.Add(catalo);
            }

            return lista;

        }
        catch (Exception e)
        {
            Logging.WriteError(e.StackTrace.ToString());
            return null;
        }
    }
    public List<CataloValueVO> getCatalog(int padre)
    {
        FVSL_LINQDataContext dbcon = new FVSL_LINQDataContext();

        List<CataloValueVO> lista = new List<CataloValueVO>();

        try
        {

            List<MAPA_GET_CATALOGO_TIPO_ORGANIZACIONResult> resultset = dbcon.MAPA_GET_CATALOGO_TIPO_ORGANIZACION().ToList();

            foreach (MAPA_GET_CATALOGO_TIPO_ORGANIZACIONResult tiporg in resultset)
            {
                CataloValueVO catalo = new CataloValueVO();

                catalo.id = tiporg.ID_T;
                catalo.value = tiporg.NOM;

                lista.Add(catalo);
            }

            return lista;
        }
        catch (Exception e)
        {
            Logging.WriteError(e.StackTrace.ToString());
            return null;
        }
    }
    public List<CataloValueVO> getCatalog(int padre)
    {
        FVSL_LINQDataContext dbcon = new FVSL_LINQDataContext();

        List<CataloValueVO> lista = new List<CataloValueVO>();

        try
        {

            List<mapa_get_catalogo_paisesResult> resultset = dbcon.mapa_get_catalogo_paises().ToList();

            foreach (mapa_get_catalogo_paisesResult benef in resultset)
            {
                CataloValueVO catalo = new CataloValueVO();

                catalo.id = benef.Id;
                catalo.value = benef.nombre;

                lista.Add(catalo);
            }

            return lista;
        }
        catch (Exception e)
        {
            Logging.WriteError(e.StackTrace.ToString());
            return null;
        }
    }