public List<EntityVO> getAll() { FVSL_LINQDataContext dbcon = new FVSL_LINQDataContext(); List<EntityVO> lista = new List<EntityVO>(); try { List<MAPA_EMP_ALLResult> resultset = dbcon.MAPA_EMP_ALL().ToList(); foreach (MAPA_EMP_ALLResult emp in resultset) { EntityVO EVO = new EntityVO(); EVO.id = emp.Id.ToString(); EVO.name = emp.Nombre; EVO.latitude = emp.Latitud.ToString(); EVO.longitude = emp.Longitud.ToString(); lista.Add(EVO); } return lista; } catch (Exception e) { Logging.WriteError(e.StackTrace.ToString()); return null; } }