Example #1
0
        public async Task OnGetAsync()
        {
            UpcomingEvents = await _eventInfos.GetUpcomingEventsAsync();

            OnlineCourses = await _eventInfos.GetOnDemandEventsAsync();

            PastEvents = await _eventInfos.GetPastEventsAsync();

            OngoingEvents = await _eventInfos.GetOngoingEventsAsync();

            UnpublishedEvents = await _eventInfos.GetUnpublishedEventsAsync();
        }