Exemple #1
0
        public ActionResult Upload(int id)
        {
            AlbumDAO dao = new AlbumDAO();
            var      ab  = dao.Detail(id);

            return(View(ab));
        }
Exemple #2
0
        public ActionResult AlbumDetail(int id)
        {
            AlbumDAO  al    = new AlbumDAO();
            var       album = al.Detail(id);
            BaiHatDAO bh    = new BaiHatDAO();

            ViewBag.BaiHatTheoAlbum = bh.BaiHatTheoAlbum(id);
            return(View(album));
        }
Exemple #3
0
        public ActionResult Update(int id)
        {
            AlbumDAO  dao   = new AlbumDAO();
            NgheSiDAO nsDAO = new NgheSiDAO();
            var       ns    = nsDAO.Listof();
            KhuVucDAO kvDAO = new KhuVucDAO();
            var       kv    = kvDAO.ListOf();

            ViewBag.ns = ns;
            ViewBag.kv = kv;
            var up = dao.Detail(id);

            return(View(up));
        }