Exemple #1
0
        public PhotoIssue PopulatePhotoIssueDetails(PhotoIssue issue, bool getOtherPhotosForListing = false)
        {
            List <ListingImage> listingsSharingImage = _imageHashRepo.GetListingsSharingImageHash(issue.StateCode, issue.ImageHash);

            if (getOtherPhotosForListing)
            {
                foreach (var listing in listingsSharingImage)
                {
                    listing.OtherListingImages = _imageHashRepo.GetAllImagesForListing(listing.ListingId, issue.StateCode);
                }
            }

            issue.ListingsSharingImage = listingsSharingImage;

            return(issue);
        }