Пример #1
0
 public void RemoveUsers(int awardId, int[] userIds)
 {
     for (int i = 0; i < userIds.Length; i++)
     {
         if (UsersAwardsDao.Remove(userIds[i], awardId))
         {
             _awards[awardId].Users.Remove(UserDao._users[userIds[i]]);
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Removes the awards from the user.
 /// </summary>
 /// <param name="userId"> The user's id. </param>
 /// <param name="awardIds"> 32-bit int array of award ids. </param>
 public void RemoveAwards(int userId, int[] awardIds)
 {
     for (int i = 0; i < awardIds.Length; i++)
     {
         if (UsersAwardsDao.Remove(userId, awardIds[i]))
         {
             _users[userId].Awards.Remove(AwardDao._awards[awardIds[i]]);
         }
     }
 }