Ejemplo n.º 1
0
 // DELETE api/tracks
 public HttpResponseMessage Delete([FromBody] int[] value)
 {
     foreach (int id in value)
     {
         Chinook.DeleteTrack(id);
     }
     return(Request.CreateResponse(HttpStatusCode.OK));
 }
Ejemplo n.º 2
0
 // DELETE api/tracks/5
 public HttpResponseMessage Delete(int id)
 {
     Chinook.DeleteTrack(id);
     return(Request.CreateResponse(HttpStatusCode.OK));
 }