예제 #1
0
        public IActionResult Index(int RoomTypeID)
        {
            ViewData.Model     = RoomTypeDAO.GetAllRoomTypeModel();
            ViewBag.RoomTypeID = RoomTypeID;

            return(View());
        }
예제 #2
0
        public IActionResult Index()
        {
            ViewData.Model = RoomTypeDAO.GetAllRoomTypeModel();
            var list = RoomTypeDAO.GetAllRoomTypeModel();

            return(View());
        }
예제 #3
0
        public IActionResult RoomsManagement()
        {
            if (!Authentication.AuthenticateByCookie(HttpContext))
            {
                return(Redirect("/Receptionists/Authentication/Login?Area=Receptionists&Ctrl=Rooms&Act=RoomsManagement"));
            }

            RoomsManagerViewModel model = new RoomsManagerViewModel();

            model.RoomModels     = RoomsDAO.GetAllRoomsModel();
            model.RoomSizes      = RoomSizeDAO.GetAllRoomSize();
            model.RoomStyles     = RoomStyleDAO.GetAllRoomStyle();
            model.RoomTypeModels = RoomTypeDAO.GetAllRoomTypeModel();
            return(View(model));
        }