/// <summary>
        /// Đếm tài liệu
        /// </summary>
        /// <returns></returns>
        public async Task <DocumentCount> CountTotalDocument()
        {
            DocumentCount countDocument = new DocumentCount();

            countDocument.Total = await _context.Document.FromSqlRaw("Select * from Document").CountAsync();

            var listDocument = await _context.Document.FromSqlRaw("Select * from Document").ToListAsync();

            listDocument.ForEach((res) =>
            {
                countDocument.TotalDownload += res.DownloadCount;
                countDocument.TotalView     += res.ViewCount;
            });
            return(countDocument);
        }
        private void WriteProjectStats(StringBuilder sb)
        {
            sb.AppendLine("<p class=\"projectInfo\">");

            var namedTypes = this.DeclaredSymbols.Keys.OfType <INamedTypeSymbol>();

            sb.Append("Project&nbsp;path:&nbsp;").Append(ProjectSourcePath).AppendLine("<br>");
            sb.Append("Files:&nbsp;").Append(DocumentCount.WithThousandSeparators()).AppendLine("<br>");
            sb.Append("Lines&nbsp;of&nbsp;code:&nbsp;").Append(LinesOfCode.WithThousandSeparators()).AppendLine("<br>");
            sb.Append("Bytes:&nbsp;").Append(BytesOfCode.WithThousandSeparators()).AppendLine("<br>");
            sb.Append("Declared&nbsp;symbols:&nbsp;").Append(this.DeclaredSymbols.Count.WithThousandSeparators()).AppendLine("<br>");
            sb.Append("Declared&nbsp;types:&nbsp;").Append(namedTypes.Count().WithThousandSeparators()).AppendLine("<br>");
            sb.Append("Public&nbsp;types:&nbsp;").Append(namedTypes.Where(t => t.DeclaredAccessibility == Accessibility.Public).Count().WithThousandSeparators()).AppendLine("<br>");
            sb.Append("Indexed&nbsp;on:&nbsp;").AppendLine(DateTime.Now.ToString("MMMM dd", CultureInfo.InvariantCulture));

            sb.AppendLine("</p>");
        }