public IHttpActionResult ById(int id) { var artist = this.GetArtistById(id); var model = ArtistServiceModel.ConvertFromArtist(artist); return(Ok(model)); }
public HttpResponseMessage Delete(int id) { var artist = this.GetArtistById(id); this.data.Artists.Delete(artist); var model = ArtistServiceModel.ConvertFromArtist(artist); var response = this.Request.CreateResponse(HttpStatusCode.OK, model); return(response); }