Exemple #1
0
 private ImageSetWrapper GetImageSetWrapper(ApplicationUser user, ImageSet imageSet, bool loadImages)
 {
     var userPublicPath = GlobalData.GetPublicPath(user.Id);
     var isw = new ImageSetWrapper
     {
         UserPublicPath = userPublicPath,
         UserDisplay = GetDisplayForm(user),
         ImageSet = imageSet,
         ProxyManifest = "/display/proxymanifest/" + userPublicPath + "/" + imageSet.Id
     };
     if (loadImages)
     {
         isw.Images = Dlcs.Dlcs.GetImages(user.DlcsSpace, imageSet.Id);
         foreach (var image in isw.Images)
         {
             if (image.Finished.HasValue && image.Finished.Value.Year < 2000)
             {
                 image.Finished = null;
             }
         }
     }
     return isw;
 }
Exemple #2
0
 private ImageSetWrapper GetImageSetWrapper(ImageSet imageSet, bool loadImages = false)
 {
     var user = UserManager.FindById(imageSet.ApplicationUserId);
     return GetImageSetWrapper(user, imageSet, loadImages);
 }