Esempio n. 1
0
        public ActionResult Hotel(int page = 1, int pageSize = 6)
        {
            //Display Active Hotel
            ViewBag.isActive = UtilContants.HOTELS_NAV;

            var hotel     = new HotelModel();
            var listHotel = hotel.listHotel().ToPagedList(page, pageSize);
            //declare TourModel to get listComboBoxToPlace method
            TourModel home = new TourModel();
            var       listComboBoxToPlace = home.listComboBoxToPlace();
            // call ListContainerHotel TO contain all list
            ListContainerHotel listContainer = new ListContainerHotel();

            listContainer.Hotel = listHotel;
            listContainer.listComboBoxToPlace = listComboBoxToPlace;
            return(View(listContainer));
        }