示例#1
0
        private void GetAllDepartments()
        {
            IList <Department> departments = departmentDAO.GetDepartments();

            if (departments.Count > 0)
            {
                foreach (Department dept in departments)
                {
                    Console.WriteLine(dept.Id.ToString().PadRight(10) + dept.Name.PadRight(40));
                }
            }
            else
            {
                Console.WriteLine("**** NO RESULTS ****");
            }
        }
示例#2
0
        private MenuOptionResult GetAllDepartments()
        {
            IList <Department> departments = departmentDAO.GetDepartments();

            if (departments.Count > 0)
            {
                foreach (Department dept in departments)
                {
                    // TODO: Uncomment this after the Department Model is implemented
                    //Console.WriteLine(dept.Id.ToString().PadRight(10) + dept.Name.PadRight(40));
                }
            }
            else
            {
                Console.WriteLine("**** NO RESULTS ****");
            }
            return(MenuOptionResult.WaitAfterMenuSelection);
        }