示例#1
0
        public IActionResult AddAlbumToTrack(long id, [FromBody] AlbumDTO albumDTO)
        {
            try
            {
                TrackService.AddAlbumToTrack(id, albumDTO);
            }
            catch (ArgumentException e)
            {
                log.LogError("The track with the id :" + id + " does not exist." + e.Message);
                return(NotFound(StatusCodes.Status404NotFound));
            }

            return(Ok(StatusCodes.Status200OK));
        }