// 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()); }