Ejemplo n.º 1
0
        public async Task <IEnumerable <Comment> > GetByPhotoId(int photoId)
        {
            var url      = $@"posts/{photoId}/comments";
            var comments = await ApiClientHelper.GetAll <Comment>(url);

            return(comments);
        }
Ejemplo n.º 2
0
        public async Task <IEnumerable <Album> > GetAllAlbums()
        {
            var url    = "albums";
            var albums = await ApiClientHelper.GetAll <Album>(url);

            return(albums);
        }
Ejemplo n.º 3
0
        public async Task <IEnumerable <Photo> > GetByAlbumId(int albumId)
        {
            var url    = $@"albums/{albumId}/photos";
            var photos = await ApiClientHelper.GetAll <Photo>(url);

            return(photos);
        }