Esempio n. 1
0
 public ReviewModel(Review review)
 {
     this.ID = review.ID;
     this.ProductModel = new ProductModel(review.Product);
     this.IdOriginal = review.ID;
     this.ProductId = this.ProductModel.ID;
     this.ReviewText = review.ReviewText;
 }
Esempio n. 2
0
 public DraftReview CreateDraftReviewFromModel(Product product, Review origin)
 {
     return new DraftReview()
     {
         ReviewText = this.ReviewText,
         Product = product,
         OriginReview = origin
     };
 }