// GET: TinTuc public ActionResult Index() { TintucDAO tt = new TintucDAO(); var newPaer = tt.ListOf(); ViewBag.TinTuc = newPaer; return(View(newPaer)); }
public ActionResult Index() { var result = dao.ListOf(); return(View(result)); }
// GET: TinTuc public ActionResult Index() { TintucDAO tt = new TintucDAO(); var newPaer = tt.ListOf(); ViewBag.TinTuc = newPaer; return(View(newPaer)); }
public ActionResult Index() { var result = dao.ListOf(); return(View(result)); }