public async Task <IActionResult> Index()
        {
            var Musics = await _musicApi.GetAllMusicAsync();

            ViewBag.Musics = Musics;
            return(View());
        }
Exemple #2
0
        public async Task <IActionResult> Index()
        {
            var Artists = await _artistApi.GetAllArtistsAsync();

            var Musics = await _musicApi.GetAllMusicAsync();

            ViewBag.Artists = Artists;
            ViewBag.Musics  = Musics;
            return(View());
        }