示例#1
0
        public async Task <IActionResult> ProductHistoryDepth([FromQuery] string products)
        {
            if (string.IsNullOrEmpty(products))
            {
                return(BadRequest());
            }

            var depths = await _orderQueries.GetProductsHistoryDepthAsync(products.Split(',').Select(p => Int32.Parse(p)));

            return(Ok(depths));
        }