/// <summary> /// 修改专家吐槽信息 /// </summary> public CommonActionResult UpdateExperterComments(UpdateCommentsInfo experter) { try { new ExpertBusiness().UpdateExperterComments(experter); return(new CommonActionResult(true, "操作成功")); } catch (Exception ex) { throw new Exception("添加吐槽 - " + ex.Message); } }
/// <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(); } }