public static string GetGitHubLink(Topic topic) { if (topic.Path != null) { return string.Format(GitHubTemplate, topic.Path.FullPath); } return string.Empty; }
public static string GitHubLink(this HtmlHelper helper, Topic topic) { return(LinkHelper.GetGitHubLink(topic)); }