// GET: Rooms/Details/5 public async Task <IActionResult> Details(string id) { var room = _RoomService.GetAllRooms().SingleOrDefault(x => x.ID == id); if (room == null) { return(NotFound()); } var ImagesAndFeatures = await _RoomService.GetRoomFeaturesAndImagesAsync(room); ViewData["Features"] = ImagesAndFeatures.Features; ViewData["Images"] = ImagesAndFeatures.Images; return(View(room)); }