Beispiel #1
0
        public static Api.CustomerReviewSearchCriteria ToApiSearchCriteria(this CustomerReviewSearchCriteria criteria)
        {
            var result = new Api.CustomerReviewSearchCriteria
            {
                IsActive   = criteria.IsActive,
                ProductIds = criteria.ProductIds,
                Skip       = criteria.Start,
                Take       = criteria.PageSize,
                Sort       = criteria.Sort
            };

            return(result);
        }
        public static ReviewDto.CustomerReviewSearchCriteria ToSearchCriteriaDto(this CustomerReviewSearchCriteria criteria)
        {
            var result = new ReviewDto.CustomerReviewSearchCriteria
            {
                IsActive   = criteria.IsActive,
                ProductIds = criteria.ProductIds,

                Skip = criteria.Start,
                Sort = criteria.Sort,
                Take = criteria.PageSize
            };

            return(result);
        }