// 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)); }
// POST api/tracks public HttpResponseMessage Post([FromBody] Tracks tracks) { var value = Chinook.UpsertTrack(tracks); return(Request.CreateResponse(HttpStatusCode.OK, tracks)); }