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