/// <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)); }
/// <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)); }
/// <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); }
/// <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); }