public IActionResult Create([FromBody] CreateOrUpdateMusicRequest request)
 {
     _logger.LogInformation("Action {ActionName} called with body {ResquestBody}.", nameof(Create), request);
     _musicContext.Musics.Add(new Music()
     {
         Album  = request.Album,
         Artist = request.Artist,
         Title  = request.Title
     });
     _musicContext.SaveChanges();
     return(Ok());
 }
        public IActionResult Update([FromRoute] int id, [FromBody] CreateOrUpdateMusicRequest request)
        {
            _logger.LogInformation("Action {ActionName} called with id = {Id}, with body {RequestBody}", nameof(Update), id, request);
            var music = _musicContext.Musics.Find(id);

            if (music == null)
            {
                return(NotFound());
            }

            music.Album  = request.Album;
            music.Title  = request.Title;
            music.Artist = request.Artist;
            _musicContext.SaveChanges();

            return(Ok());
        }