public IActionResult Checkout(string CarrinhoCompraID)
        {
            var      carrinho = _carrinhoCompra.GetCarrinho(CarrinhoCompraID);
            PedidoVM pedido   = new PedidoVM();

            pedido.CarrinhoCompra = carrinho;
            return(View(pedido));
        }
        public IActionResult Index(string CarrinhoCompraID)
        {
            var carrinho = _carrinhoCompra.GetCarrinho(CarrinhoCompraID);

            if (carrinho != null)
            {
                CarrinhoCompraVM carrinhoVM = _mapper.Map <CarrinhoCompraVM>(carrinho);
                return(View(carrinhoVM));
            }
            else
            {
                return(NotFound());
            }
        }