private List<AreaVO> getEMParea(int p) { List<AreaVO> lista = new List<AreaVO>(); FVSL_LINQDataContext dbaux = new FVSL_LINQDataContext(); try { List<MAPA_GET_AREAResult> areas = dbaux.MAPA_GET_AREA(1, p).ToList(); foreach (MAPA_GET_AREAResult are in areas) { AreaVO A = new AreaVO(); A.area = are.Nombre; lista.Add(A); } return lista; } catch (Exception e) { Logging.WriteError(e.StackTrace.ToString()); return null; } }
//getcooprea receive (id_ods) Return List of Areas private List<String> getCOOParea(int id) { List<String> lista = new List<String>(); FVSL_LINQDataContext dbaux = new FVSL_LINQDataContext(); try { List<MAPA_GET_AREAResult> areas = dbaux.MAPA_GET_AREA(3,id).ToList(); foreach (MAPA_GET_AREAResult are in areas) { lista.Add(are.Nombre); } return lista; } catch (Exception e) { Logging.WriteError(e.StackTrace.ToString()); return null; } }