示例#1
0
        private static void ShowAllUsers()
        {
            IEnumerable <User> users = _userLogic.GetAll();

            if (users.Count() == 0)
            {
                Console.WriteLine("No users.");
            }
            else
            {
                foreach (var user in users)
                {
                    ShowUser(user);
                    ShowAwardsOfUser(_awardLogic.GetByIdList(user.Awards));
                }
            }
        }