コード例 #1
0
        public async Task <IActionResult> EditMusic(int id)
        {
            var Artists = await _artistApi.GetAllArtistsAsync();

            var music = await _musicApi.FindMusicById(id);

            ViewBag.Artists = Artists;
            ViewBag.Music   = music;

            return(View());
        }
コード例 #2
0
        public async Task <IActionResult> SingleProduct(int id)
        {
            var Music = await _musicApi.FindMusicById(id);

            ViewBag.Music = Music;

            return(View());
        }