Exemplo n.º 1
0
        private MenuOptionResult LookUpClass()
        {
            IList <Student> students = studentDAO.GetStudents();

            if (students.Count > 0)
            {
                foreach (Student student in students)
                {
                    Console.WriteLine(student.StudentId.ToString().PadRight(5) + student.FirstName.PadRight(12) + student.LastName.PadRight(13) + student.Gender.PadRight(5) + student.HogwartsHouse.PadRight(15) + student.TEClass.PadRight(10));
                }
            }
            else
            {
                Console.WriteLine("**** NO RESULTS ****");
            }
            return(MenuOptionResult.WaitAfterMenuSelection);
        }