public IActionResult Index()
        {
            var contentResult = new NinHtmlResult("Document.Api is running!");

            Log.v("AUTH", contentResult.Content);
            return(contentResult);
        }
        public IActionResult DumpLog(string priority = "Verbose")
        {
            var r             = SysLogToHtml(priority);
            var contentResult = new NinHtmlResult("<pre>" + r + "</pre>");

            Log.v("DIAG", "Log: " + contentResult.Content.Length);
            return(contentResult);
        }
        public IActionResult Index(int maxCount = 200)
        {
            var html = new HtmlWriter();

            html.Append("<pre>");

            html.Append(QueryToHtml("TaskQueueError", maxCount));
            html.Append(QueryToHtml("TaskQueue", maxCount));
            html.Append(QueryToHtml("TaskLog", maxCount));

            html.Tag("h3", "SysLog Verbose");
            html.Append(SysLogToHtml("Verbose", maxCount));

            html.Append("</pre>");
            var contentResult = new NinHtmlResult(html.ToString());

            Log.v("DIAG", "Index: " + contentResult.Content.Length);
            return(contentResult);
        }