// 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()); }
// GET: Rooms/Create public IActionResult Create() { var RoomTypes = _hotelService.GetAllRoomTypesAsync().Result; ViewData["RoomTypeID"] = new SelectList(RoomTypes, "ID", "Name"); var room = new Room(); return(View()); }