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

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

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

            return(comments);
        }