21 lines
603 B
C#
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);
|
|
}
|
|
}
|
|
}
|