Esempio n. 1
0
        public async Task <IActionResult> ThuVien(int id)
        {
            viewModel.AlbumList = await dmDAL.GetAbumList();

            viewModel.VideoList = await imgDAL.GetVideoByType();

            return(View(viewModel));
        }
        public async Task <IViewComponentResult> InvokeAsync()
        {
            homeViewModels.AlbumList = await dmDAL.GetAbumList();

            homeViewModels.VideoList = await dmDAL.GetVideoList();

            homeViewModels.VideoHome = await imgDAL.GetVideoByType();

            return(View(homeViewModels));
        }