コード例 #1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            //可以获取上下信息
            //var id = RouteData.Values["id"] as string;
            var categories = await _categoryService.FindChildrenAsync(0);

            return(View(categories));
        }
コード例 #2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var categories = await _categoryService.FindChildrenAsync(0);

            return(View(categories));
        }