CodePlexProject Hosting for Open Source Software
/// Converts this instance of <see cref="Review"/> to an instance of <see cref="ReviewDTO"/>.
/// <param name="entity"><see cref="Review"/> to convert.</param>
public static ReviewDTO ToDTO(this Review entity)
if (entity == null) return null;
var dto = new ReviewDTO();
dto.ReviewID = entity.ReviewID;
dto.ProductID = entity.ProductID;
dto.CustomerName = entity.CustomerName;
dto.CustomerEmail = entity.CustomerEmail;
dto.Rating = entity.Rating;
dto.Comments = entity.Comments;
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.