public List <Release> GetReleasesByArtistId(String artistId) { string resourceFullURL = GetReleaseURL(artistId); Task <String> xmlResponseTask = webServiceClient.GetRequest(resourceFullURL); string xmlResponse = xmlResponseTask.Result; return(ReleaseProcessor.GetList(xmlResponse, artistId)); }
public List <Release> GetAlbumsByArtistId(String artistId) { string resourceFullURL = GetAlbumURL(artistId); Task <String> xmlResponseTask = webServiceClient.GetRequest(resourceFullURL); string xmlResponse = xmlResponseTask.Result; if (string.IsNullOrEmpty(xmlResponse)) { throw new Exception("Error processing request."); } return(ReleaseProcessor.GetList(xmlResponse, artistId)); }