/// <summary>
        /// 添加事件类型
        /// </summary>
        /// <param name="eventType"> string EventTypeName 事件名称
        /// /int ExecTime 执行时间/int ParentTypeId 上级分类Id(不用传)/</param>
        /// <returns></returns>
        // POST api/<controller>
        public MessageEntity Post([FromBody] M_EventType eventType)
        {
            eventType.ParentTypeId = 0;
            var messageEntity = _eventTypeDAL.AddEventType(eventType);

            return(messageEntity);
        }
        /// <summary>
        /// 添加事件分类内容
        /// </summary>
        /// <param name="eventType"> string EventTypeName 事件名称
        /// /int ExecTime 执行时间/int ParentTypeId 上级分类Id/</param>
        /// <returns></returns>
        // POST api/<controller>
        public MessageEntity Post([FromBody] M_EventType eventType)
        {
            if (string.IsNullOrEmpty(eventType.EventTypeName) || eventType.ExecTime == null)
            {
                return(MessageEntityTool.GetMessage(ErrorType.FieldError));
            }
            var messageEntity = _eventTypeDAL.AddEventType(eventType);

            return(messageEntity);
        }