public async Task <IActionResult> PutSongAIO(long id, SongAIO songAIO)
        {
            if (id != songAIO.Id)
            {
                return(BadRequest());
            }

            _context.Entry(songAIO).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SongAIOExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <SongAIO> > PostSongAIO(SongAIO songAIO)
        {
            _context.SongAIO.Add(songAIO);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetSongAIO", new { id = songAIO.Id }, songAIO));
        }
        public async Task <IActionResult> DeleteSongAIO(SongAIO songAIO)
        {
            var dbSongAIO = await _context.SongAIO
                            .FirstOrDefaultAsync(s =>
                                                 s.GenreName == songAIO.GenreName &&
                                                 s.AlbumTitle == songAIO.AlbumTitle &&
                                                 s.ArtistName == songAIO.ArtistName &&
                                                 s.SongTitle == songAIO.SongTitle
                                                 );

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

            _context.SongAIO.Remove(dbSongAIO);
            await _context.SaveChangesAsync();

            return(NoContent());
        }