public IActionResult AddArtistToTrack(long id, [FromBody] ArtistDTO artistDTO) { try { TrackService.AddArtistToTrack(id, artistDTO); } catch (ArgumentException e) { log.LogError("The track with the id :" + id + " does not exist." + e.Message); return(NotFound(StatusCodes.Status404NotFound)); } return(Ok(StatusCodes.Status200OK)); }