コード例 #1
0
        public async Task <IActionResult> GetCurrentBasket()
        {
            try
            {
                var basketModel = await _basketManager.GetCurrentBasket();

                return(Ok(basketModel));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Error occured retrieving basket");
                return(StatusCode((int)HttpStatusCode.InternalServerError));
            }
        }