public ActionResult Upload(int id) { AlbumDAO dao = new AlbumDAO(); var ab = dao.Detail(id); return(View(ab)); }
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)); }
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)); }