//getODSarea receive (id_ods) Return List of Areas private List<AreaVO> getODSarea(int id) { List<AreaVO> lista = new List<AreaVO>(); FVSL_LINQDataContext dbaux = new FVSL_LINQDataContext(); try { List<p_Select_ODS_PerfilResult> areas = dbaux.p_Select_ODS_Perfil(id).ToList(); foreach (p_Select_ODS_PerfilResult are in areas) { AreaVO A = new AreaVO(); A.area = are.AreaIntervencion; lista.Add(A); } return lista; } catch (Exception e) { Logging.WriteError(e.StackTrace.ToString()); return null; } }