AJH.CMS.WEB.UI.Admin.ManageGallery_UC.GetGalleryFile C# (CSharp) Метод

GetGalleryFile() защищенный Метод

protected GetGalleryFile ( Gallery gallery ) : string
gallery AJH.CMS.Core.Entities.Gallery
Результат string
        protected string GetGalleryFile(Gallery gallery)
        {
            switch (gallery.GalleryType)
            {
                case CMSEnums.GalleryType.Document:
                    return "~/App_Themes/Image/Document.png";
                case CMSEnums.GalleryType.Photo:
                    if (gallery.GalleryItemType == CMSEnums.GalleryItemType.Internal)
                        return CMSWebHelper.GetGalleryThumbnailFile(gallery.File);
                    else
                        return gallery.URL;
                case CMSEnums.GalleryType.Video:
                    return "~/App_Themes/Image/Video.png";
            }
            return "~/App_Themes/Image/UnknowType.png";
        }
        #endregion