using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using EMIS.Web.Controls; using EMIS.ViewModel; using EMIS.ViewModel.EvaluationManage.EvaluationSetting; using EMIS.CommonLogic.EvaluationManage.EvaluationSetting; namespace EMIS.Web.Controllers.EvaluationManage.EvaluationSetting { [Authorization] public class EvaluationSensitiveWordController : Controller { public Lazy EvaluationSensitiveWordServices { get; set; } /// /// 敏感词页面 /// /// public ActionResult List() { return View(EvaluationSensitiveWordServices.Value.GetEvaluationSensitiveWordView()); } /// /// 敏感词保存 /// /// /// [HttpPost] public ActionResult List(EvaluationSensitiveWordView evaluationSensitiveWordView) { try { EvaluationSensitiveWordServices.Value.EvaluationSensitiveWordSave(evaluationSensitiveWordView); return Json(new ReturnMessage { IsSuccess = true, Message = "保存成功。" }); } catch (Exception ex) { return Json(new ReturnMessage { IsSuccess = false, Message = "保存失败,原因:" + ex.Message }); } } } }