public string SubmitDoubt(DoubtInfo_Add doubt)
        {
            var id     = Guid.NewGuid().ToString("N");
            var entity = new Doubt
            {
                Id                    = id,
                Title                 = doubt.Title,
                Description           = doubt.Description,
                Category              = doubt.Category,
                ShowIndex             = 0,
                UpCount               = 0,
                DownCount             = 0,
                CreateTime            = DateTime.Now,
                CreateUserKey         = doubt.CreateUserKey,
                CreateUserDisplayName = doubt.CreateUserDisplayName,
                UpdateTime            = DateTime.Now,
                UpdateUserKey         = doubt.CreateUserKey,
                UpdateUserDisplayName = doubt.CreateUserDisplayName,
            };

            using (var biz = new GameBiz.Business.GameBizBusinessManagement())
            {
                biz.BeginTran();
                using (var manager = new DoubtManager())
                {
                    manager.AddDoubt(entity);
                }
                biz.CommitTran();
            }
            return(id);
        }
 public void UpdateDoubt(string doubtId, DoubtInfo_Add doubt)
 {
     using (var biz = new GameBiz.Business.GameBizBusinessManagement())
     {
         biz.BeginTran();
         using (var manager = new DoubtManager())
         {
             var entity = manager.GetDoubtById(doubtId);
             if (entity == null)
             {
                 throw new ArgumentException("指定编号的问题不存在");
             }
             entity.Title                 = doubt.Title;
             entity.Description           = doubt.Description;
             entity.Category              = doubt.Category;
             entity.UpdateTime            = DateTime.Now;
             entity.UpdateUserKey         = doubt.CreateUserKey;
             entity.UpdateUserDisplayName = doubt.CreateUserDisplayName;
             manager.UpdateDoubt(entity);
         }
         biz.CommitTran();
     }
 }