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