public async Task <IEnumerable <Comment> > GetByPhotoId(int photoId) { var url = $@"posts/{photoId}/comments"; var comments = await ApiClientHelper.GetAll <Comment>(url); return(comments); }
public async Task <IEnumerable <Album> > GetAllAlbums() { var url = "albums"; var albums = await ApiClientHelper.GetAll <Album>(url); return(albums); }
public async Task <IEnumerable <Photo> > GetByAlbumId(int albumId) { var url = $@"albums/{albumId}/photos"; var photos = await ApiClientHelper.GetAll <Photo>(url); return(photos); }