Exemple #1
0
        /// <summary>
        /// List all of the Students in the database.
        /// </summary>
        /// <returns>The List of StudentDAOs.</returns>
        public List <StudentDAO> ListStudents()
        {
            List <StudentDAO> studentDAOs = new List <StudentDAO>();

            foreach (Student student in data.ListStudents())
            {
                studentDAOs.Add(Mapper.MapToStudentDAO(student));
            }

            return(studentDAOs);
        }