Exemplo n.º 1
0
        protected override async Task OnInitializedAsync()
        {
            PlayDates = await AgendaService.GetAgendaAsync();

            var futurePlayDates = PlayDates.Where(pd => pd.Date >= DateTime.Today).Select(pd => pd.Date.Date);

            NextPlayDate = (futurePlayDates.Any() ? futurePlayDates.Min() : new Nullable <DateTime>());
        }