示例#1
0
        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)
            });
        }
示例#2
0
 private PostLightModel findAssociatedPost(CommentLightModel comment)
 {
     return(((CommentModel)GetDetail(comment)).ParentContribution);
 }
 private void TaggedInCommentSelected(CommentLightModel commentLightModel) => mediator.Send(new TaggedInCommentSelectedMessage {
     Comment = commentLightModel
 });