Esempio n. 1
0
        public List <Album> GetAllAlbums()
        {
            string resourceUrl = _albumURL.Albums;
            var    albums      = ApiRestUtil.MyRequest <List <Album> >(resourceUrl, 0);

            return(albums);
        }
Esempio n. 2
0
        public List <Photo> GetPhotos(int albumId)
        {
            string resourceUrl = _photoURL.Photos;
            var    photos      = ApiRestUtil.MyRequest <List <Photo> >(resourceUrl, albumId);

            return(photos);
        }
Esempio n. 3
0
        public List <Comment> GetCommentByPhoto(int photoId)
        {
            string resourceUrl = _commentURL.Comments;
            var    comments    = ApiRestUtil.MyRequest <List <Comment> >(resourceUrl, photoId);

            return(comments);
        }