Esempio n. 1
0
        public List <DepartmentDAO> ListDepartments()
        {
            List <DepartmentDAO> departments = new List <DepartmentDAO>();

            foreach (Department department in data.ListDepartments())
            {
                departments.Add(Mapper.MapToDepartmentDAO(department));
            }

            return(departments);
        }