public async Task <ActionResult> SubmitForm(ModuleButtonEntity entity, string keyValue)
        {
            try
            {
                await btnApp.SubmitFormAsync(entity, keyValue);

                if (string.IsNullOrEmpty(keyValue))
                {
                    WirteOperationRecord("ModuleButton", "INSERT", "增加", "Info:" + entity.ToJson());
                }
                else
                {
                    WirteOperationRecord("ModuleButton", "UPDATE", "修改", "Info:" + entity.ToJson());
                }
            }
            catch (Exception ex)
            {
                log.logType  = "ERROR";
                log.logLevel = "ERROR";
                WirteOperationRecord("ModuleButton", "", "", "Info:" + ex.Message.ToString());
                return(Error(ex.Message.ToString()));
            }
            return(Success("操作成功."));
        }
        public ActionResult GetFormJson(string keyValue)
        {
            var data = new ModuleButtonEntity();

            try
            {
                data = (btnApp.FindList(c => c.btnGuid == keyValue))[0];
                WirteOperationRecord("ModuleButton", "SELECT", "查询", "Info:获取菜单数据(单个)");
            }
            catch (Exception ex)
            {
                log.logType  = "ERROR";
                log.logLevel = "ERROR";
                WirteOperationRecord("ModuleButton", "", "", ex.Message.ToString());
            }
            return(Content(data.ToJson()));
        }