public IEnumerable <Cart> GetCarts([Service] CartResolver resolver)
 {
     return(resolver.Carts());
 }
 public async Task <Cart> GetCart([Service] CartResolver resolver, string cartId)
 {
     return(await resolver.Cart(cartId));
 }
Exemplo n.º 3
0
 public async Task <Cart> AddItemToCart([Service] CartResolver resolver, string cartId, string productId)
 {
     return(await resolver.AddToCart(cartId, productId));
 }