Beispiel #1
0
        // GET: Album
        public ActionResult Index()
        {
            AlbumDAO al = new AlbumDAO();
            //Tất cả album
            var allAlbum = al.Listof();

            ViewBag.TatCaAlbum = allAlbum;
            //Album Hot
            var albumHot = al.AlbumHot();

            ViewBag.AlbumHot = albumHot;
            //Bai hát Theo Album
            var listBh = al.BaiHatByAlbum();

            ViewBag.BaiHatTheoAlbum = listBh;
            return(View());
        }