/// <summary>
        /// Gets the file.
        /// </summary>
        /// <param name="fullsizeFile">The fullsize file.</param>
        /// <returns></returns>
        private ActionResult GetFile(MediaFile fullsizeFile)
        {
            string url = UrlService.CreateImageUrlUsingCloudUrl(Owner.Username, fullsizeFile.FilePath);

            WebRequest  request  = WebRequest.Create(url);
            WebResponse response = request.GetResponse();
            // ReSharper disable PossibleNullReferenceException
            Stream stream = response.GetResponseStream();

            // ReSharper restore PossibleNullReferenceException

            return(File(stream, "application/octet-stream", fullsizeFile.OriginalFileName));
        }
        /// <summary>
        /// Gets the image link.
        /// </summary>
        /// <param name="media">The media.</param>
        /// <returns></returns>
        public string JustTheImageWebsize(Media media)
        {
            MediaFile thumbnail = media.GetImageByPhotoType(PhotoType.Thumbnail);
            MediaFile websize   = media.GetImageByPhotoType(PhotoType.Websize);


            const string linkFormat = "<a class=\"popupimage\" href=\"{0}\" name=\"{4}\" title=\"{1}\"><img src=\"{2}\" alt=\"{3}\" /></a>";
            string       link       = string.Format(linkFormat,
                                                    UrlService.CreateImageUrlUsingCloudUrl(media.Owner.Username, websize.FilePath),
                                                    media.Title,
                                                    UrlService.CreateImageUrlUsingCloudUrl(media.Owner.Username, thumbnail.FilePath),
                                                    media.Description, media.MediaId);

            return(link);
        }