public commentWCF convertToWCF(comment c) { commentWCF comment = new commentWCF(); comment.id = c.id; comment.item_id = c.item_id; comment.user_id = c.user_id; comment.user_name = c.user_name; comment.comment = c.comments; comment.date_added = c.date_added; return(comment); }
public comment convertFromWCF(commentWCF c) { return(new comment(c.id, c.item_id, c.user_id, c.user_name, c.comment, c.date_added)); }