Пример #1
0
        public ActionResult Index()
        {
            var model = new HomeViewModel
            {
                AdultNum = 0,
                ChildNum = 0,
                OrderDateForm = DateTime.Now.Date,
                OrderDateTo = DateTime.Now.AddDays(1).Date,
                RoomNum = 0,
                TbNewsList = null,
                TbRoomsList = roomRepository.Find<TB_Room>(find => find.IsDelete == false),

                RoomBookingOrder = new TB_RoomBookingOrder()
                {
                    OrderDateForm = DateTime.Now.Date,
                    OrderDateTo = DateTime.Now.AddDays(1).Date,
                    RoomNum = 1,
                    TotalAmount = 0,
                    RoomId = 1,
                    AdultNum = 1,
                    CustomeSex = "先生/小姐"
                }
            };

            ViewBag.Title = "Dopetrope by HTML5 UP";
            return View(model: model);
            //return View(new HomeViewModel());
        }
Пример #2
0
        /// <summary>
        /// 房型介紹
        /// </summary>
        /// <returns></returns>
        public ActionResult Introduction()
        {
            var model = new HomeViewModel
            {
                AdultNum = 0,
                ChildNum = 0,
                OrderDateForm = DateTime.Now.Date,
                OrderDateTo = DateTime.Now.AddDays(1).Date,
                RoomNum = 0,
                TbNewsList = null,
                TbRoomsList = roomRepository.Find<TB_Room>(find => find.IsDelete == false)
            };

            ViewBag.Title = "Dopetrope by HTML5 UP";
            return View(model: model);
        }