public async Task <IActionResult> HotelInfo(long hotelId, QueryParam queryParam) { var currentUser = await userManager.GetUserAsync(HttpContext.User); var blobsUri = await imageService.ListAsync(hotelId); var hotel = await hotelService.FindHotelByIdAsync(hotelId); var property = await hotelPropertyTypeService.FindPropertyByHotelIdAsync(hotelId); var roomBeds = roomBedService.GetRoomBeds(); ViewData["propertyType"] = property.PropertyType.Type; ViewData["averageRating"] = hotelService.AverageRating(hotel.Reviews); var isReviewed = reviewService.Reviewed(hotel.Reviews, currentUser); var reviewsPaging = hotelService.ReviewsList(hotel.Reviews, queryParam); return(View(new IndexViewModel { User = currentUser, Hotel = hotel, RoomBeds = roomBeds, FolderList = blobsUri, IsReviewed = isReviewed, ReviewsPagingList = reviewsPaging, QueryParam = queryParam, ActionName = nameof(HotelInfo) })); }