Exemple #1
0
        /// <summary>
        /// Returns a media url.
        /// </summary>
        /// <param name="image">The image file.</param>
        /// <returns></returns>
        public IHtmlString MediaUrl(NullableDataReference <IImageFile> image)
        {
            if (!image.IsSet)
            {
                return(null);
            }

            return(MediaUrl((string)image.KeyValue));
        }
Exemple #2
0
        /// <summary>
        /// Returns a media url.
        /// </summary>
        /// <param name="mediaFile">The media file.</param>
        /// <returns></returns>
        public IHtmlString MediaUrl(NullableDataReference <IMediaFile> mediaFile)
        {
            if (!mediaFile.IsSet)
            {
                return(null);
            }

            return(MediaUrl((string)mediaFile.KeyValue));
        }
Exemple #3
0
        /// <summary>
        /// Returns a media url.
        /// </summary>
        /// <param name="image">The image file.</param>
        /// <returns></returns>
        public IHtmlString MediaUrl(NullableDataReference<IImageFile> image)
        {
            if (!image.IsSet)
            {
                return null;
            }

            return MediaUrl((string)image.KeyValue);
        }
Exemple #4
0
        /// <summary>
        /// Returns a media url.
        /// </summary>
        /// <param name="mediaFile">The media file.</param>
        /// <returns></returns>
        public IHtmlString MediaUrl(NullableDataReference<IMediaFile> mediaFile)
        {
            if (!mediaFile.IsSet)
            {
                return null;
            }

            return MediaUrl((string) mediaFile.KeyValue);
        }