Exemplo n.º 1
0
        protected override async Task OnInitializedAsync()
        {
            CurrPanelType     = PanelType.Attempts;
            AggregationPanels = new AggregationPanels(new DataForDropdowns());

            AttemptsTask = Task.Run(() => (IEnumerable <Attempt>)searchResultService.FindData(AggregationPanels.AttemptPanel).OrderByDescending(item => item.Competition));
            AthletsTask  = Task.Run(() => (IEnumerable <Athlete>)searchResultService.FindData(AggregationPanels.AthletePanel).OrderBy(item => item.Name));
            RecordsTask  = Task.Run(() => (IEnumerable <Record>)searchResultService.FindData(AggregationPanels.RecordPanel).OrderByDescending(item => item.Competition));

            AggregationPanels.DataForDropdowns = await Task.Run(() => InitializeDataForDropdowns());
        }
Exemplo n.º 2
0
        protected override async Task OnInitializedAsync()
        {
            CurrPanelType     = PanelType.Attempts;
            AggregationPanels = new AggregationPanels(new DataForDropdowns());

            AttemptsTask = Task.Run(() => searchResultService.FindData(AggregationPanels.AttemptPanel));
            AthletsTask  = Task.Run(() => searchResultService.FindData(AggregationPanels.AthletePanel));
            RecordsTask  = Task.Run(() => searchResultService.FindData(AggregationPanels.RecordPanel));

            AggregationPanels.DataForDropdowns = await Task.Run(() => InitializeDataForDropdowns());
        }