예제 #1
0
        private static AcProductReviewDto MakeDto(UProductReview review)
        {
            AcProductReviewDto retVal = new AcProductReviewDto();

            retVal.Email       = review.Email;
            retVal.ProductId   = review.ProductId;
            retVal.Rating      = review.Rating;
            retVal.ReviewBody  = review.ReviewBody;
            retVal.ReviewDate  = review.ReviewDate;
            retVal.ReviewTitle = review.ReviewTitle;

            return(retVal);
        }
예제 #2
0
        public static bool SaveReview(UProductReview ableReview)
        {
            AcProductReviewDto newDto = MakeDto(ableReview);

            return(_service.AddOrUpdate(newDto));
        }