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