/// <summary>
        /// 插入
        /// </summary>
        /// <param name="entity">实体</param>
        /// <returns></returns>
        public AjaxResult Insert(ActionInfo entity)
        {
            AjaxResult res = new AjaxResult(ResultStatus.OK);

            entity.Valid();
            entity.ActionGuid = (entity.ActionGuid == Guid.Empty ? Guid.NewGuid() : entity.ActionGuid);
            if (entity.Insert() == 1)
            {
                res.Status = ResultStatus.OK;
            }
            else
            {
                res.Status  = ResultStatus.NO;
                res.Message = "新增失败!";
            }
            return(res);
        }