public IActionResult AddAlbumToArtist(long id, [FromBody] AlbumDTO albumDTO) { try { ArtistService.AddAlbumToArtist(id, albumDTO); } catch (ArgumentException e) { log.LogError("An artist with the id :" + id + " does not exist." + e.Message); return(NotFound(StatusCodes.Status404NotFound)); } return(Ok(StatusCodes.Status200OK)); }