public CommentDto(Domain.Comment comment) { id = comment.Id; review = comment.Review.Id; author = new UserTileDTO(comment.Author.Model); content = comment.Content.Value; createdAt = comment.CreatedAt; }
public ReviewDto(Domain.Review review) { id = review.Id; movie = review.Movie.Id; author = new UserTileDTO(review.Author.Model); comments = review.Comments.Select(x => x.Id).ToList(); content = review.Content.Value; createdAt = review.CreatedAt; rating = review.Rating.Value; }
public DetailLinkDtoWithUser(Domain.Link link) { id = link.Id; user = new UserTileDTO(link.User.Model); title = link.Title.Value; subtitle = link.Subtitle.Value; iconName = link.IconName.Value; href = link.Href.Value; createdAt = link.CreatedAt.ToUniversalTime().ToString("O"); }