public ActionResult <ItemsResponse <AverageProductRating> > GetMerchantProductRatings()
        {
            ActionResult result    = null;
            int          createdBy = _authService.GetCurrentUserId();

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

                if (ratingList == null)
                {
                    result = NotFound404(new ErrorResponse("You do not have any product ratings to display"));
                }
                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);
        }