public async Task <ActionResult <MusicRecords> > PostMusicRecord(MusicRecords musicRecords)
        {
            _context.InMemoryMusicRecords.Add(musicRecords);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetInMemoryRecord", new { id = musicRecords.Id }, musicRecords));
        }
        public async Task <IActionResult> PutMusicRecords(int id, MusicRecords musicRecords)
        {
            if (id != musicRecords.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }