Пример #1
0
        public async Task <IActionResult> Index()
        {
            var Musics = await _musicApi.GetAllMusicAsync();

            ViewBag.Musics = Musics;
            return(View());
        }
Пример #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());
        }