public ActionResult <ItemsResponse <AverageProductRating> > GetConsumerProductRatings()
        {
            ActionResult result = null;

            try
            {
                List <AverageProductRating> ratingList = _ratingsService.GetAvgConsumerProductRatings();



                if (ratingList == null)
                {
                    result = NotFound404(new ErrorResponse("The product rating list is empty."));
                }
                else
                {
                    ItemsResponse <AverageProductRating> resp = new ItemsResponse <AverageProductRating>();
                    resp.Items = ratingList;
                    result     = Ok200(resp);
                }
            }
            catch (Exception ex)
            {
                Logger.LogError(ex.ToString());
                result = StatusCode(500, new ErrorResponse(ex.Message.ToString()));
            }

            return(result);
        }