Files
aviq-boilerplate/CityInfo.WEB/Pages/PointsOfInterestOverview.razor.cs
T
2026-03-22 01:10:14 +01:00

21 lines
603 B
C#

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<PointOfInterest> PointsOfInterest { get; set; }
protected override async Task OnInitializedAsync()
{
PointsOfInterest = await PointOfInterestDataService.GetPointsOfInterest(CityId);
}
}
}