public static CommentModel ToModel(Comment commentEntity) { CommentModel commentModel = new CommentModel() { Author = commentEntity.Author.DisplayName, PostDate = commentEntity.PostDate, Text = commentEntity.Text }; return commentModel; }