コード例 #1
0
        public IActionResult EditNavigation(VNavigationEdit input)
        {
            if (input == null)
            {
                return(ShowError(""));
            }

            return(ShowSuccess(""));
        }
コード例 #2
0
        public VRequestInfo EditNavigation(VNavigationEdit input)
        {
            int res = 0;

            if (input.navigationId == 0 && input.parentNavigationId == 0)
            {
                //新增一级导航
                var navInfo = new NavigationInfo()
                {
                };
                navigationRepositrory.Insert(navInfo);
            }
            else if (input.navigationId == 0)
            {
                //新增子导航
            }
            else
            {
                //修改导航名称
            }
            return(res > 0 ? VRequestInfo.SuccessResult("操作成功") : VRequestInfo.ErrorResult("操作失败"));
        }