public void InsertProductReview(ProductReview productReview) { context.ProductReviews.Add(productReview); }
public void UpdateProductReview(ProductReview productReview) { ProductReview targetProductReview = context.ProductReviews.Find(productReview.ProductReviewID); if (targetProductReview != null) { targetProductReview.IsEdited = productReview.IsEdited; targetProductReview.IsRecommended = productReview.IsRecommended; targetProductReview.LastEdited = productReview.LastEdited; targetProductReview.ProductID = productReview.ProductID; targetProductReview.PostDate = productReview.PostDate; targetProductReview.Review = productReview.Review; targetProductReview.UserID = productReview.UserID; } }
public ActivityFeedContainer(ProductReview productReview) { ItemDate = productReview.PostDate; ProductReview = productReview; }