Exemplo n.º 1
0
        public async Task <IActionResult> ProductHistory(string productId)
        {
            if (string.IsNullOrEmpty(productId))
            {
                return(BadRequest());
            }

            var items = await _orderQueries.GetProductHistoryAsync(productId);

            return(Ok(items));
        }