Пример #1
0
        /// <summary>
        /// 处理预警消息
        /// </summary>
        /// <param name="ID">预警消息ID</param>
        /// <param name="EarlyType">预警类型</param>
        /// <returns></returns>
        public HttpResponseMessage HandleEarlyWarning(int ID, string EarlyType)
        {
            var data = _earlyWarning.HandleEarlyWarning(ID, EarlyType).ToJson();

            return(AjaxResult.Success(data).ToJsonApi());
        }
        /// <summary>
        /// 处理流程预警信息
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public ActionResult HandleEarlyWarning(int ID, string EarlyType)
        {
            var data = _earlyWarning.HandleEarlyWarning(ID, EarlyType);

            return(Content(data.ToJson()));
        }