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]]); } } }
/// <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]]); } } }