Blog.Logic.ObjectMapper.CommentLikeMapper.ToDto C# (CSharp) Méthode

ToDto() public static méthode

public static ToDto ( Blog.DataAccess.Database.Entities.Objects commentLike ) : CommentLike
commentLike Blog.DataAccess.Database.Entities.Objects
Résultat CommentLike
        public static CommentLike ToDto(Db.CommentLike commentLike)
        {
            return commentLike == null ? null : 
                new CommentLike
                {
                    CommentId = commentLike.CommentId,
                    CommentLikeId = commentLike.CommentLikeId,
                    UserId = commentLike.UserId,
                    CreatedBy = commentLike.CreatedBy,
                    CreatedDate = commentLike.CreatedDate,
                    ModifiedBy = commentLike.ModifiedBy,
                    ModifiedDate = commentLike.ModifiedDate
                };
        }
CommentLikeMapper