Exemple #1
0
        public async Task <IEnumerable <SocialMediaImageApiResponse> > GetInstagramImageUrls(Guid chapterId, int max)
        {
            IReadOnlyCollection <SocialMediaImage> images = await _socialMediaService.GetLatestInstagramImages(chapterId);

            return(images
                   .Take(max > 0 ? max : int.MaxValue)
                   .Select(_mapper.Map <SocialMediaImageApiResponse>));
        }