コード例 #1
0
        public ArtistModel EditArtist(int id, ArtistModel artistModel)
        {
            var content = this.CreateJsonContent(artistModel);

            var albums = this.Put<ArtistModel>("api/Artists/Edit/" + id, content);
            return albums;
        }
コード例 #2
0
        public ArtistModel CreateArtist(ArtistModel artistModel)
        {
            var content = this.CreateJsonContent(artistModel);

            var artist = this.Post<ArtistModel>("api/Artists/Add", content);
            return artist;
        }