Adding a Blazor WASM app
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user