예제 #1
0
        public ActionResult <Cart> Get(string cartId)
        {
            try
            {
                var cart = store.Get(cartId);

                return(Ok(cart));
            }
            catch (CartNotFoundException) { return(StatusCode(404)); }
            catch (Exception) { return(StatusCode(500)); }
        }