Esempio n. 1
0
        public IActionResult AddTrackToGenre(long id, [FromBody] TrackDTO trackDto)
        {
            try
            {
                GenreService.AddTrackToGenre(id, trackDto);
            }
            catch (ArgumentException e)
            {
                log.LogError("The genre with the id :" + id + " does not exist." + e.Message);
                return(NotFound(StatusCodes.Status404NotFound));
            }

            return(Ok(StatusCodes.Status200OK));
        }