Beispiel #1
0
        public Dictionary <Award, List <User> > GetAllAwardsWUsers()
        {
            Dictionary <Award, List <User> > temp = new Dictionary <Award, List <User> >();

            foreach (Award award in awardsDao.GetAllAwards())
            {
                List <User> users = GetAllUsersWithAward(award);

                if (users != null)
                {
                    temp.Add(award, users);
                }
                else
                {
                    temp.Add(award, new List <User>());
                }
            }

            return(temp);
        }
Beispiel #2
0
 public List <Award> GetAllAwards() => daoAwards.GetAllAwards();