Exemplo n.º 1
0
        public async Task <IActionResult> Create()
        {
            var cate_tree = await _categoryApiClient.GetAllCategory();

            ViewBag.ListCate = await OrderCateToTree(cate_tree);

            return(View());
        }
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var category = await _categoryApiClient.GetAllCategory();

            return(View(category));
        }