コード例 #1
0
        public ActionResult Update(int id)
        {
            TheLoaiDAO dao = new TheLoaiDAO();
            var        ud  = dao.Detail(id);

            return(View(ud));
        }
コード例 #2
0
        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));
        }