@page "/calendars/{calendarId:int}/events/{eventUid}" @inject Data.CalendarService _calendarService Back @if (_event == null) {

Loading...

} else {

@_event.Summary

@if (_event.DtStart != null) {
Start: @_event.DtStart
} @if (_event.CalculatedEnd != null) {
End: @_event.CalculatedEnd
}

@_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); } }