Пример #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));
        }