@page "/calendars/{calendarId:int}/events/{eventUid}" @inject Data.CalendarService _calendarService Back @if (_event == null) {
Loading...
} else {@_event.Description
} @code { [Parameter] public int CalendarId { get; set; } [Parameter] public string EventUid { get; set; } private Data.Event _event; protected override async Task OnInitializedAsync() { var calendar = await Data.CalendarService.GetCalendarById(CalendarId); _event = await calendar.GetEventByUid(EventUid); } }