예제 #1
0
        public ActionResult RemoveItem(int basketNumber, int productNumber)
        {
            logger.LogInformation($"RemoveItem Delete called ({productNumber})");

            try
            {
                manager.RemoveItem(basketNumber, productNumber);
                return(StatusCode(204));
            }
            catch (Exception e)
            {
                return(StatusCode(500, e.Message));
            }
        }