public ActionResult <string> Reverse([FromQuery] int[] productIds)
        {
            if (productIds == null || productIds.Length == 0)
            {
                return(BadRequest("productIds parameter is missing"));
            }

            return(Ok(_arrayCalcService.Reverse(productIds)));
        }
        public IActionResult ReverseProducts(int[] productIds)
        {
            if (productIds == null || productIds.Length == 0)
            {
                return(BadRequest("Specify product ids to reverse in the query string"));
            }
            if (productIds.Length == 1)
            {
                return(Ok(productIds));
            }

            try
            {
                _calcService.Reverse(productIds);
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
            return(Ok(productIds));
        }