private async Task <string> GetContentItemIdAsync(HttpContext httpContext)
        {
            var url = httpContext.Request.Path.ToString().TrimEnd('/');

            if (string.IsNullOrEmpty(url))
            {
                (var foundHomepage, var homepageEntry) = await _entries.TryGetEntryByPathAsync("/");

                if (foundHomepage)
                {
                    return(homepageEntry.ContentItemId);
                }
            }

            (var found, var entry) = await _entries.TryGetEntryByPathAsync(url);

            if (found)
            {
                return(entry.ContentItemId);
            }

            return(null);
        }
        private async Task <string> GetContentItemId(HttpContext httpContext)
        {
            AutorouteEntry entry;
            var            url = httpContext.Request.Path.ToString().TrimEnd('/');

            if (string.IsNullOrEmpty(url))
            {
                var rsltSlash = await _entries.TryGetEntryByPathAsync("/");

                if (rsltSlash.Item1)
                {
                    return(rsltSlash.Item2.ContentItemId);
                }
            }

            var rsltUrl = await _entries.TryGetEntryByPathAsync(url);

            if (rsltUrl.Item1)
            {
                return(rsltUrl.Item2.ContentItemId);
            }

            return(null);
        }