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; } }