public ActionResult _RewardUsers(long?userId = null) { IEnumerable <long> userIds = Request.QueryString.Gets <long>("CheckBoxGroup", new List <long>()); if (userId.HasValue) { //userIds.Union(new List<long> { userId.Value }); List <long> tempList = userIds.ToList(); tempList.Add(userId.Value); userIds = tempList.AsEnumerable(); } ViewData["userIds"] = userIds; pageResourceManager.InsertTitlePart("奖惩用户"); PointCategory experiencePoints = pointService.GetPointCategory(PointCategoryKeys.Instance().ExperiencePoints()); PointCategory reputationPoints = pointService.GetPointCategory(PointCategoryKeys.Instance().ReputationPoints()); PointCategory tradePoints = pointService.GetPointCategory(PointCategoryKeys.Instance().TradePoints()); ViewData["experiencePoints"] = experiencePoints; ViewData["reputationPoints"] = reputationPoints; ViewData["tradePoints"] = tradePoints; return(View()); }