예제 #1
0
        public Dictionary <User, List <Award> > GetAllUsersWAwards()
        {
            Dictionary <User, List <Award> > temp = new Dictionary <User, List <Award> >();

            foreach (User user in usersDao.GetAllUsers())
            {
                List <Award> awards = GetAllAwardsOfUser(user);

                if (awards != null)
                {
                    temp.Add(user, awards);
                }
                else
                {
                    temp.Add(user, new List <Award>());
                }
            }

            return(temp);
        }
예제 #2
0
 public List <User> GetAllUsers() => daoUsers.GetAllUsers();
예제 #3
0
 public IList <User> GetAllUsers()
 {
     return(dao.GetAllUsers());
 }