public virtual ApiProductReviewResponseModel MapBOToModel( BOProductReview boProductReview) { var model = new ApiProductReviewResponseModel(); model.SetProperties(boProductReview.ProductReviewID, boProductReview.Comment, boProductReview.EmailAddress, boProductReview.ModifiedDate, boProductReview.ProductID, boProductReview.Rating, boProductReview.ReviewDate, boProductReview.ReviewerName); return(model); }
public virtual BOProductReview MapEFToBO( ProductReview ef) { var bo = new BOProductReview(); bo.SetProperties( ef.ProductReviewID, ef.Comment, ef.EmailAddress, ef.ModifiedDate, ef.ProductID, ef.Rating, ef.ReviewDate, ef.ReviewerName); return(bo); }
public virtual ProductReview MapBOToEF( BOProductReview bo) { ProductReview efProductReview = new ProductReview(); efProductReview.SetProperties( bo.Comment, bo.EmailAddress, bo.ModifiedDate, bo.ProductID, bo.ProductReviewID, bo.Rating, bo.ReviewDate, bo.ReviewerName); return(efProductReview); }
public virtual BOProductReview MapModelToBO( int productReviewID, ApiProductReviewRequestModel model ) { BOProductReview boProductReview = new BOProductReview(); boProductReview.SetProperties( productReviewID, model.Comment, model.EmailAddress, model.ModifiedDate, model.ProductID, model.Rating, model.ReviewDate, model.ReviewerName); return(boProductReview); }