// hien thi chi tiet tin tuc public ActionResult ChiTietNew(int id) { newsDAO newdao = new newsDAO(); ViewBag.New = newdao.getNew(id); return(View()); }
public ActionResult Index() { newsDAO newDao = new newsDAO(); ViewBag.lisNew = newDao.getListNews(); return(View()); }
public ActionResult tinNghienCuu(int id) { SubCategoryDAO subCateDao = new SubCategoryDAO(); ViewBag.lisSubCate = subCateDao.getSubCate(6); newsDAO newdao = new newsDAO(); ViewBag.lisNew = newdao.getListNewsSub(id); return(View()); }
public ActionResult TinHopTac(int id) { SubCategoryDAO subCateDao = new SubCategoryDAO(); ViewBag.lisSubCate = subCateDao.getSubCate(7); newsDAO newdao = new newsDAO(); ViewBag.lisNew = newdao.getListNewsSub(id); return(View()); }
// GET: News public ActionResult ChiTietNews(int id) { var model = new newsDAO().getNews(id); return(View(model)); }