コード例 #1
0
        public ActionResult ChiTietTinTuc(int id)
        {
            TintucDAO tt     = new TintucDAO();
            var       detail = tt.Detail(id);

            return(View(detail));
        }
コード例 #2
0
        public ActionResult Update(int id)
        {
            TintucDAO   dao    = new TintucDAO();
            var         up     = dao.Detail(id);
            TaiKhoanDAO TKdao  = new TaiKhoanDAO();
            var         ListTK = TKdao.Listof();

            ViewBag.TK = ListTK;
            return(View(up));
        }