private string GetPlainTextContent(CommentModel comment) { var sb = new StringBuilder(); sb.Append(GetContentHeading(comment, false)); sb.Append("\r\n"); sb.Append(CommentMarkdownExtensions.MarkdownAsPlainText(comment.Comment)); return(sb.ToString()); }
private string GetHtmlContent(CommentModel comment, ReviewModel review) { var uri = new Uri($"{_endpoint}/Assemblies/Review/{review.ReviewId}#{Uri.EscapeUriString(comment.ElementId)}"); var sb = new StringBuilder(); sb.Append(GetContentHeading(comment, true)); sb.Append("<br><br>"); sb.Append($"In <a href='{uri.ToString()}'>{comment.ElementId}</a>:"); sb.Append("<br><br>"); sb.Append(CommentMarkdownExtensions.MarkdownAsHtml(comment.Comment)); return(sb.ToString()); }