コード例 #1
0
        public async Task <ActionResult <Song> > DeleteAsync(int id)
        {
            var song = await songManager.GetSongAsync(id);

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

            return(await songManager.DeleteSongAsync(id));
        }