protected async override Task OnInitializedAsync() { _totalMonths = 13; _events = await EventDataService.GetAll(); _shouldRender = true; }
protected async override Task OnInitializedAsync() { _events = await EventDataService.GetAll(); if (EventId == 0) { Event = await EventDataService.Add(new Event()); } else { Event = _events.FirstOrDefault(e => e.EventId == EventId); } }
protected async override Task OnInitializedAsync() { _events = await EventDataService.GetAll(); }