123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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<IEvaluationSensitiveWordServices> EvaluationSensitiveWordServices { get; set; }
- /// <summary>
- /// 敏感词页面
- /// </summary>
- /// <returns></returns>
- public ActionResult List()
- {
- return View(EvaluationSensitiveWordServices.Value.GetEvaluationSensitiveWordView());
- }
- /// <summary>
- /// 敏感词保存
- /// </summary>
- /// <param name="evaluationSensitiveWordView"></param>
- /// <returns></returns>
- [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 });
- }
- }
- }
- }
|