Exemplo n.º 1
0
        /// <summary>
        /// 添加专家吐槽
        /// </summary>
        public void AddExperterComments(string userId, string sendUserId, CommentsTpye commentsTpye, string analyzeSchemeId, string recommendSchemeId, string content, string currentTime)
        {
            using (var biz = new GameBizBusinessManagement())
            {
                biz.BeginTran();

                var manager = new ExperterCommentsManager();
                var entity  = new ExperterComments()
                {
                    UserId            = userId,
                    CommentsTpye      = commentsTpye,
                    AnalyzeSchemeId   = analyzeSchemeId,
                    RecommendSchemeId = recommendSchemeId,
                    DealWithType      = DealWithType.NoneDealWith,
                    Content           = content,
                    SendUserId        = sendUserId,
                    DisposeOpinion    = "",
                    CurrentTime       = currentTime,
                    CreateTime        = DateTime.Now,
                };
                manager.AddExperterComments(entity);

                biz.CommitTran();
            }
        }