using CityInfo.WEB.Models; using CityInfo.WEB.Services; using Microsoft.AspNetCore.Components; namespace CityInfo.WEB.Pages { public partial class PointsOfInterestOverview { [Inject] public IPointOfInterestDataService PointOfInterestDataService { get; set; } [Parameter] public int CityId { get; set; } public IEnumerable PointsOfInterest { get; set; } protected override async Task OnInitializedAsync() { PointsOfInterest = await PointOfInterestDataService.GetPointsOfInterest(CityId); } } }