Пример #1
0
        public ReputationComment ToDALModel(ReputationCommentEntity reputation)
        {
            ReputationComment repComDAL = new ReputationComment()
            {
                UserId    = reputation.UserId,
                CommentId = reputation.ContentCommentId,
                Score     = reputation.Score
            };

            return(repComDAL);
        }
Пример #2
0
        public ReputationCommentEntity ToDomainModel(ReputationComment reputation)
        {
            ReputationCommentEntity repCommDomain = new ReputationCommentEntity()
            {
                Id               = reputation.Id,
                UserId           = reputation.UserId,
                ContentCommentId = reputation.CommentId,
                Score            = reputation.Score,
                user             = this.ToDomainModel(reputation.User)
            };

            return(repCommDomain);
        }