Example #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);
        }
Example #2
0
 public List <User> GetAllUsers() => daoUsers.GetAllUsers();
Example #3
0
 public IList <User> GetAllUsers()
 {
     return(dao.GetAllUsers());
 }