Exemple #1
0
        public async Task OnGetAsync()
        {
            // Get response
            var lineChartResponse = await _lineChartService.GetAllLineCharts();

            // Build
            Charts = ChartBuilder.BuildCharts(lineChartResponse);
        }
Exemple #2
0
        public async Task <IActionResult> GetAllLineCharts(string currencyId = null, IndicatorType?indicatorType = null, string indicatorId = null, string userId = null)
        {
            // Reponse
            var response = await _lineChartService.GetAllLineCharts(currencyId, indicatorType, indicatorId, userId);

            // Return
            return(Ok(response));
        }
        public async Task <IActionResult> Index()
        {
            // Get all line charts
            var lineCharts = await _lineChartService.GetAllLineCharts();

            // ViewModel
            var lineChartViewModel = LineChartBuilder.BuildLineChartViewModel(lineCharts);

            // Return
            return(View("Index", lineChartViewModel));
        }