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)); }