public override JsonResult Post(AppMenuView objModal, string Id)
        {
            int categoryId;

            if (int.TryParse(Id, out categoryId))
            {
                //暂时写死。
                objModal.IsAdmin = false;

                _menuService.UpdateOrAdd(objModal);

                if (objModal != null && objModal.ButtonReturnType != null && objModal.ButtonReturnType.Button != null)
                {
                    if (objModal.ButtonReturnType.Button.type.Equals("view-news-list"))
                    {
                        objModal.ButtonReturnType.Button.url = CommonService.GetSysConfig("FileManageUrl", "http://localhost:24829").Trim('/') + "/News/ArticleInfo/List?wechatid=" + objModal.AppId + "&strSubCate=" + objModal.Id;

                        var obj = _menuService.Repository.GetByKey(objModal.Id);
                        obj.Function = JsonHelper.ToJson(objModal.ButtonReturnType);
                        _menuService.Repository.Update(obj, new List <string>()
                        {
                            "Function"
                        });
                    }
                }
                return(Json(doJson(null), JsonRequestBehavior.AllowGet));
            }

            _log.Debug("CategoryController.Edit: 传入的id不为数字类型!");
            return(ErrorNotification("参数应该为自然数!"));
        }
        public override JsonResult Post(AppMenuView objModal, string Id)
        {
            int categoryId;

            if (int.TryParse(Id, out categoryId))
            {
                menuService.UpdateOrAdd(objModal);

                return(Json(doJson(null), JsonRequestBehavior.AllowGet));
            }

            _log.Debug("CategoryController.Edit: 传入的id不为数字类型!");
            return(ErrorNotification("参数应该为自然数!"));
        }