public ActionResult PictureVoteItemRejected()
        {
            Campaign_PictureVoteItemRejectedArgs args = RequestArgs <Campaign_PictureVoteItemRejectedArgs>();

            if (args == null)
            {
                return(RespondResult(false, "参数无效。"));
            }

            NormalResult result = _campaignManager.PictureVote.PictureVoteItemRejected(this.DomainContext, args);

            #region 操作日志

            if (result.Success)
            {
                _operatedLogManager.Create(new OperatedLogEntity()
                {
                    Domain      = DomainContext.Domain.Id,
                    AppId       = DomainContext.AppId,
                    User        = MemberContext.User.Id,
                    IP          = Request.UserHostAddress,
                    Module      = EnumModule.Campaign,
                    Description = "拒绝最美投票活动中的项目,说明:" + args.Message
                });
            }

            #endregion

            return(RespondResult(result.Success, result.Message));
        }
Example #2
0
        /// <summary>
        /// 修改审核状态 ,拒绝
        /// </summary>
        /// <param name="args"></param>
        public NormalResult PictureVoteItemRejected(DomainContext domainContext, Campaign_PictureVoteItemRejectedArgs args)
        {
            List <CommandParameter> parameterList = new List <CommandParameter>();

            parameterList.Add(new CommandParameter("@id", args.ItemId));
            parameterList.Add(new CommandParameter("@approveStatus", EnumCampaignPictureVoteItemApproveStatus.Rejected));
            parameterList.Add(new CommandParameter("@rejectedMessage", args.Message));

            _campaignManager.DataBase.ExecuteNonQuery(
                "UPDATE [Campaign_PictureVoteItem] SET [ApproveStatus] = @approveStatus,[RejectedMessage] = @rejectedMessage WHERE [Id] = @id",
                parameterList);

            return(new NormalResult());
        }