public async Task OnGetAsync() { // Get response var chartResponse = await _chartService.GetCharts(); // Build Charts = ChartBuilder.BuildCharts(chartResponse); }
public async Task <IActionResult> GetCharts([BindRequired] Period period = Period.ONE_MINUTE, List <string> currencyIds = null, List <string> userIds = null, List <string> indicatorIds = null) { // Reponse var response = await _chartService.GetCharts(period, currencyIds, userIds, indicatorIds); // Return return(Ok(response)); }
//lifecycle methods protected override async Task OnInitializedAsync() { this.TimecardRecChangeNotifyService.OnChartRecordChanged += this.ChangeChartRecord; TimecardCharts = (await ChartService.GetCharts()).ToList(); }