private static void CreateWelcomeComment(ObjectProvider repository, AdminUrlHelper adminUrlHelper, Entry entry) { string commentBody = ScriptHelper.UnpackEmbeddedScriptAsString("WelcomeComment.htm"); string feedbackUrl = adminUrlHelper.FeedbackList(); commentBody = string.Format(commentBody, feedbackUrl); var comment = new FeedbackItem(FeedbackType.Comment) { Title = "re: Welcome to Subtext!", Entry = entry, Author = "Subtext", DateCreated = DateTime.Now, DateModified = DateTime.Now, Approved = true, Body = commentBody }; repository.Create(comment); }