public async Task <IViewComponentResult> InvokeAsync() { var carrinho = await _pedidoQueries.GetCartByClientId(ClientId); var itens = carrinho?.Items.Count ?? 0; return(View(itens)); }
public async Task <IActionResult> Index() { return(View(await _orderQueries.GetCartByClientId(ClientId))); }