예제 #1
0
        public async Task <ActionResult <Cart> > GetCart(string username)
        {
            var cart = await _repo.GetCart(username);

            return(Ok(cart ?? new Cart(username)));
        }
예제 #2
0
 public CartModels.Cart Get(string id)
 {
     return(_cartRepo.GetCart(id));
 }