Beispiel #1
0
        // PUT api/tracks/5
        public HttpResponseMessage Put(int id, [FromBody] Tracks tracks)
        {
            tracks.TrackId = id;
            var value = Chinook.UpsertTrack(tracks);

            return(Request.CreateResponse(HttpStatusCode.OK, tracks));
        }
Beispiel #2
0
        // POST api/tracks
        public HttpResponseMessage Post([FromBody] Tracks tracks)
        {
            var value = Chinook.UpsertTrack(tracks);

            return(Request.CreateResponse(HttpStatusCode.OK, tracks));
        }