public static CommentRelation ToOrm(DalCommentRelation relation) { if (relation == null) { throw new ArgumentNullException(nameof(relation)); } return(new CommentRelation() { Id = relation.Id, RelationName = relation.RelationName }); }
public static CommentRelationEntity ToBll(DalCommentRelation dcr) { if (dcr == null) { throw new ArgumentNullException(nameof(dcr)); } return(new CommentRelationEntity() { Id = dcr.Id, RelationName = dcr.RelationName }); }