public ExecuteResult<CommentInfoResponse> Update(CommentUpdateRequest request)
        {
            var entity = _commentRepository.GetItem(request.CommentId);
            if (entity == null)
            {
                return new ExecuteResult<CommentInfoResponse>(null) { StatusCode = StatusCode.ClientError, Message = "评论不存在" };
            }

            if (entity.User_Id != request.AuthUid)
            {
                return new ExecuteResult<CommentInfoResponse>(null) { StatusCode = StatusCode.ClientError, Message = "您没有权限修改其他人的评论" };
            }

            entity.Content = request.Content;
            entity.UpdatedDate = DateTime.Now;
            entity.UpdatedUser = request.AuthUid;

            using (var ts = new TransactionScope())
            {
                _commentRepository.Update(entity);

                //删除以前的语音
                //处理文件上传
                if (request.Files != null && request.Files.Count > 0)
                {
                    var r = ServiceLocator.Current.Resolve<IResourceService>();
                    var commentResources = r.Get(entity.Id, SourceType.CommentAudio);

                    var list = r.Save(request.Files, request.AuthUid, 0, entity.Id, SourceType.CommentAudio);
                    if (list != null && list.Count > 0)
                    {
                        foreach (var rs in commentResources)
                        {
                            r.Del(rs.Id);
                        }
                    }
                }

                ts.Complete();
            }

            return new ExecuteResult<CommentInfoResponse>(MappingManager.CommentInfoResponseMapping(entity, request.Version));
        }
        public ActionResult Update(CommentUpdateRequest request, int? authuid, UserModel authUser)
        {
            request.AuthUid = authuid.Value;
            request.AuthUser = authUser;
            request.Content = UrlDecode(request.Content);
            request.Files = Request.Files;

            return new RestfulResult { Data = this._commentDataService.Update(request) };
        }