/// <summary>
        /// 添加或者编辑扩展属性
        /// </summary>
        /// <param name="extensionProperty">扩展属性</param>
        /// <returns>返回添加或保存结果</returns>
        public Response CreateOrUpdate(ExtensionProperty extensionProperty)
        {
            return this.InvokeService(
                nameof(CreateOrUpdate),
                () =>
                {
                    this.Persistence.Update(NS, "CreateOrUpdate", extensionProperty);

                    this.ClearCache<ExtensionProperty>();
                },
                extensionProperty);
        }
        public ActionResult CreateOrUpdate(ExtensionProperty model)
        {
            model.Initialize();

            var rsp = this.ExtensionPropertyService.CreateOrUpdate(model);

            return rsp.IsSuccess ? CloseDialogWithAlert("添加成功!", callback: $"top.main.ReSearch('{model.Category}');") : Alert("添加失败,失败原因:" + rsp.ErrorMessage, AlertType.Error);
        }