private string GetPagePath(Guid id)
        {
            var item = _contentService.GetContentById(id).Result;
            var url  = item.Url;

            return(PageUrlTranslator.TranslateToStazorPath(url));
        }
        public async Task <IRetrievedContent> GetContentByUrlSlug(string path)
        {
            try
            {
                path = PageUrlTranslator.TranslateToCmsPath(path);
                var content = await _contentDelivery.Content.GetByUrl(path, Culture);

                return(_typeResolver.GetTypedContent(content));
            }
            catch (Refit.ApiException ex)
            {
                if (ex.StatusCode == HttpStatusCode.NotFound)
                {
                    return(null);
                }
                throw;
            }
        }