public async Task <IElementView <ShareElementSettings, ShareElementContent> > ReadElementViewAsync(long tenantId, long elementId, IPageContext context)
        {
            ShareElementSettings settings = await _elementRepository.ReadElementSettingsAsync(tenantId, elementId);

            if (settings == null)
            {
                return(null);
            }

            ShareElementContent content = new ShareElementContent();

            Page page = await _pageService.ReadPageAsync(tenantId, context.PageId);

            content.Description = page.Description ?? string.Empty;
            content.Hashtags    = string.Empty;
            content.Image       = string.Empty;
            content.IsVideo     = string.Empty;
            content.Title       = page.Name;

            return(new ElementView <ShareElementSettings, ShareElementContent>
            {
                Settings = settings,
                Content = content
            });
        }
        public async Task <ShareElementContent> ReadElementContentAsync(long tenantId, long elementId, long pageId)
        {
            ShareElementContent elementContent = new ShareElementContent();

            Page page = await _pageService.ReadPageAsync(tenantId, pageId);

            elementContent.Description = page.Description ?? string.Empty;
            elementContent.Hashtags    = string.Empty;
            elementContent.Image       = string.Empty;
            elementContent.IsVideo     = string.Empty;
            elementContent.Title       = page.Name;

            return(elementContent);
        }