示例#1
0
        //
        // GET: /StoreManager/
        public async Task <IActionResult> Index()
        {
            try
            {
                var albums = await MusicStoreService.GetAllAlbumsAsync();

                return(View(albums));
            } catch
            {
                return(View(new List <Album>()));
            }
        }
示例#2
0
        //
        // GET: /StoreManager/
        public async Task <IActionResult> Index()
        {
            var albums = await MusicStoreService.GetAllAlbumsAsync();

            return(View(albums));
        }