public HttpResponseMessage Albums(Guid artistId) { var artist = service.Get(artistId); if (artistId == null) { return(Request.CreateResponse(HttpStatusCode.BadRequest)); } var release = MusicBrainz.Search.Release(arid: artist.Id.ToString(), limit: 10); var releases = new List <Release>(); foreach (var releaseData in release.Data) { releases.Add(Release.CreateFromReleaseData(artist.Id, releaseData)); } return(Request.CreateResponse(HttpStatusCode.OK, releases)); }