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); }
public static bool SaveReview(UProductReview ableReview) { AcProductReviewDto newDto = MakeDto(ableReview); return(_service.AddOrUpdate(newDto)); }