protected ContentResolveResult ResolveContent(BasicContent video)
        {
            var contentItem = new ContentCoreData()
            {
                ContentGuid      = video.ContentGuid,
                ContentReference = video.ContentLink,
                ContentTypeID    = _contentTypeRepository.Load(typeof(Video)).ID,
            };

            return(base.CreateContentResolveResult(contentItem));
        }
        /// <summary>
        /// The resolve content.
        /// </summary>
        /// <param name="contentLink">
        /// The content link.
        /// </param>
        /// <returns>
        /// The <see cref="ContentResolveResult"/>.
        /// </returns>
        /// <remarks>
        /// This method should be implemented to support permanent link support. With permanent link  means that a link to a
        ///     <see cref="T:EPiServer.Core.IContent"/>
        ///     instance
        ///     can be stored in a Guid based format. Then the link is not broken even if content instance moves. Also permanent links are preserved during import/export and
        ///     mirroring.
        /// </remarks>
        protected override ContentResolveResult ResolveContent(ContentReference contentLink)
        {
            if (ContentReference.IsNullOrEmpty(contentLink))
            {
                return(null);
            }

            ContentCoreData contentData = this.ContentCoreDataLoader.Service.Load(contentLink.ID);

            // All pages but the entry root should appear to come from this content provider
            if (!contentLink.CompareToIgnoreWorkID(this.EntryRoot))
            {
                contentData.ContentReference.ProviderName = this.ProviderKey;
            }

            ContentResolveResult result = this.CreateContentResolveResult(contentData);

            if (!result.ContentLink.CompareToIgnoreWorkID(this.EntryRoot))
            {
                result.ContentLink.ProviderName = this.ProviderKey;
            }

            return(result);
        }
 protected ContentResolveResult ResolveContent(BasicContent content)
 {
     var contentItem = new ContentCoreData()
     {
         ContentGuid = content.ContentGuid,
         ContentReference = content.ContentLink,
         ContentTypeID = ContentTypeRepository.Service.Load(typeof(InstaImage)).ID,
     };
     return base.CreateContentResolveResult(contentItem);
 }