Exemple #1
0
        // GET: Rooms/Create
        public IActionResult Create()
        {
            var Room = _RoomService.GetAllRoomTypesAsync().Result;

            ViewData["RoomTypeID"] = new SelectList(Room, "ID", "Name");
            var room = new Room();

            ViewData["Features"] = _RoomService.PopulateSelectedFeaturesForRoom(room);
            return(View());
        }
Exemple #2
0
        // GET: Rooms/Create
        public IActionResult Create()
        {
            var RoomTypes = _hotelService.GetAllRoomTypesAsync().Result;

            ViewData["RoomTypeID"] = new SelectList(RoomTypes, "ID", "Name");

            var room = new Room();


            return(View());
        }