Ejemplo n.º 1
0
        /// <summary>
        /// 删除专家吐槽
        /// </summary>
        public void DeleteExperterCommentsById(int id)
        {
            var exper  = new ExperterCommentsManager();
            var entity = exper.QueryExperterCommentsById(id);

            if (entity == null)
            {
                throw new LogicException(string.Format("查不到{0}该吐槽信息", id));
            }
            exper.DeleteExperterComments(entity);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 修改专家吐槽信息
        /// </summary>
        public void UpdateExperterComments(UpdateCommentsInfo experter)
        {
            using (var biz = new GameBizBusinessManagement())
            {
                biz.BeginTran();

                var manager = new ExperterCommentsManager();
                var entity  = manager.QueryExperterCommentsById(experter.id);
                if (entity == null)
                {
                    throw new Exception("修改信息未被查询到");
                }

                entity.DisposeOpinion = experter.DisposeOpinion;
                entity.DealWithType   = experter.DealWithType;

                manager.UpdateExperterComments(entity);
                biz.CommitTran();
            }
        }