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 ****"); } }
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); }