Ejemplo n.º 1
0
        public List <Position> getPositions()
        {
            XmlDb           xmlDb         = new XmlDb(xmlPath);
            List <XElement> xElems        = xmlDb.getElements();
            List <Position> positionsList = new List <Position>();

            foreach (XElement xElem in xElems)
            {
                Position pos = getPositionFromXElem(xElem);
                positionsList.Add(pos);
            }

            return(positionsList);
        }
Ejemplo n.º 2
0
        public List <Employee> getEmployees()
        {
            XmlDb           xmlDb         = new XmlDb(xmlPath);
            List <XElement> xElems        = xmlDb.getElements();
            List <Employee> employeesList = new List <Employee>();

            foreach (XElement xElem in xElems)
            {
                Employee emp = getEmployeeFromXElem(xElem);
                employeesList.Add(emp);
            }

            return(employeesList);
        }