public async Task <IViewComponentResult> InvokeAsync() { var cart = await _orderQueries.GetCartByClient(ClientId); var items = cart?.Items.Count ?? 0; return(View(items)); }
public async Task <IActionResult> Index() { return(View(await _orderQueries.GetCartByClient(ClientId))); }