public async Task <IActionResult> GetAllProductCategory()
        {
            var listproductcategory = await _productCategoryConnectAPI.GetAllProductCategory();

            return(Json(new
            {
                status = true,
                data = listproductcategory
            }));
        }
Example #2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var listproductcategory = await _productCategoryConnectAPI.GetAllProductCategory();

            return(View(listproductcategory));
        }