示例#1
0
 /// <summary>
 /// Adds the awards to the user.
 /// </summary>
 /// <param name="userId"> The user's id. </param>
 /// <param name="awardIds"> 32-bit int array of award ids. </param>
 public void AddAwards(int userId, int[] awardIds)
 {
     for (int i = 0; i < awardIds.Length; i++)
     {
         if (UsersAwardsDao.Add(userId, awardIds[i]))
         {
         }
     }
 }
示例#2
0
 public void AddUsers(int awardId, int[] userIds)
 {
     for (int i = 0; i < userIds.Length; i++)
     {
         if (UsersAwardsDao.Add(userIds[i], awardId))
         {
             _awards[awardId].Users.Add(UserDao._users[userIds[i]]);
         }
     }
 }