public ActionResult Update(int id) { TheLoaiDAO dao = new TheLoaiDAO(); var ud = dao.Detail(id); return(View(ud)); }
public ActionResult BaiHatTheoTheLoai(int id) { BaiHatDAO bh = new BaiHatDAO(); TheLoaiDAO th = new TheLoaiDAO(); var theloai = th.Detail(id); ViewBag.TheLoai = theloai.TenTheLoai; var x = bh.GetBaiHatByTheLoai(id); return(View(x)); }