public static HtmlTag UpdateNotesDiv(IUpdateNotes dbEntry)
        {
            if (string.IsNullOrWhiteSpace(dbEntry.UpdateNotes))
            {
                return(HtmlTag.Empty());
            }

            var updateNotesDiv = new DivTag().AddClass("update-notes-container");

            updateNotesDiv.Children.Add(new DivTag().AddClass("update-notes-title").Text("Updates:"));

            var updateNotesContentContainer = new DivTag().AddClass("update-notes-content");

            var updateNotesHtml = ContentProcessing.ProcessContent(
                BracketCodeCommon.ProcessCodesForSite(dbEntry.UpdateNotes, null), dbEntry.UpdateNotesFormat);

            updateNotesContentContainer.Encoded(false).Text(updateNotesHtml);

            updateNotesDiv.Children.Add(updateNotesContentContainer);

            return(updateNotesDiv);
        }
 public UpdateNotesEditorContext(StatusControlContext statusContext, IUpdateNotes dbEntry)
 {
     StatusContext     = statusContext ?? new StatusControlContext();
     UpdateNotesFormat = new ContentFormatChooserContext(statusContext);
     StatusContext.RunFireAndForgetTaskWithUiToastErrorReturn(() => LoadData(dbEntry));
 }