示例#1
0
        public ActionResult ChildCategoryNavigation(CategoryModel currentCategory)
        {
            var model = _childCategoryNavigationBuilder.Build(currentCategory);

            if (model != null)
            {
                return(PartialView(model));
            }

            return(null);
        }
        public IViewComponentResult Invoke(Guid categorySystemId)
        {
            var model = _childCategoryNavigationBuilder.Build(categorySystemId);

            if (model != null)
            {
                return(View("~/Views/Navigation/ChildCategoryNavigation.cshtml", model));
            }

            return(Content(""));
        }