Exemplo n.º 1
0
        public ActionResult Delete(string cartId)
        {
            try
            {
                store.Delete(cartId);

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