コード例 #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
ファイル: BLOUsers.cs プロジェクト: IgorBrv/xt_net_web
 public List <User> GetAllUsers() => daoUsers.GetAllUsers();
コード例 #3
0
ファイル: UsersController.cs プロジェクト: Gene-Huh/Team-Mike
 public IList <User> GetAllUsers()
 {
     return(dao.GetAllUsers());
 }