public ActionResult LichKhoiHanh()
        {
            var tourDAO = new TourDAO();
            var model   = tourDAO.GetTourGanDay(10);

            return(View(model));
        }
        public ActionResult LichKhoiHanh()
        {
            var quangcaoDAO = new QuangCaoDAO();

            ViewBag.QuangCao = quangcaoDAO.DanhSachQuangCao();
            var tourDAO = new TourDAO();

            ViewBag.LichKhoiHanh = tourDAO.GetTourGanDay(20);
            return(View());
        }
Exemple #3
0
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var tourDAO   = new TourDAO();
            var tintucDAO = new TinTucDAO();

            ViewBag.NewTour    = tourDAO.ListNewTour(4);
            ViewBag.News       = tintucDAO.ListNews(3);
            ViewBag.TourGanDay = tourDAO.GetTourGanDay(5);
            var quangcaoDAO = new QuangCaoDAO();

            ViewBag.QuangCao = quangcaoDAO.DanhSachQuangCao();
            return(View());
        }