Пример #1
0
        public async Task <ActionResult <ProductItem> > GetProductItemAsync(Guid id)
        {
            logger?.LogDebug("'{0}' has been invoked", nameof(GetProductItemAsync));

            var productItem = await context.GetProductItemsAsync(new ProductItem(id));

            if (productItem == null)
            {
                return(NotFound());
            }

            return(productItem);
        }