Пример #1
0
        public async Task <IEnumerable <AlbumList> > GetCurrentUserAlbums()
        {
            IEnumerable <PhotoListDTO> photos = await _photosService.GetCurrentUserPhotosAsync();

            IEnumerable <AlbumListDTO> albums = await _albumsService.GetCurrentUserAlbumsAsync();

            return(_albumAggregator.Combine(albums, photos));
        }
 public Task <IEnumerable <PhotoListDTO> > GetCurrentUserPhotosAsync()
 {
     return(_photosService.GetCurrentUserPhotosAsync());
 }