public Comment MapCommentLightModelToComment(CommentLightModel lightModel) { if (lightModel == null) { return(null); } return(new Comment { Id = lightModel.Id, Content = lightModel.Content, Date = lightModel.Date, Author = MapUserLightModelToUser(lightModel.Author) }); }
private PostLightModel findAssociatedPost(CommentLightModel comment) { return(((CommentModel)GetDetail(comment)).ParentContribution); }
private void TaggedInCommentSelected(CommentLightModel commentLightModel) => mediator.Send(new TaggedInCommentSelectedMessage { Comment = commentLightModel });