public Comment(Model.Comment comment) { Id = comment.Id; Body = comment.Body; CreatedOn = comment.CreatedOn; User = new UserResponse.Profile(comment.Owner); }
public Post(Model.Post post) { Id = post.Id; Title = post.Title; Body = post.Body; CreatedOn = post.CreatedOn; User = new UserResponse.Profile(post.Owner); SetupComments(post); }