Exemple #1
0
        public async Task OnGetAsync()
        {
            // Get response
            var chartResponse = await _chartService.GetCharts();

            // Build
            Charts = ChartBuilder.BuildCharts(chartResponse);
        }
Exemple #2
0
        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));
        }
Exemple #3
0
 //lifecycle methods
 protected override async Task OnInitializedAsync()
 {
     this.TimecardRecChangeNotifyService.OnChartRecordChanged += this.ChangeChartRecord;
     TimecardCharts = (await ChartService.GetCharts()).ToList();
 }