コード例 #1
0
 public IActionResult Index()
 {
     ViewBag.DataPoints_PaymentType         = JsonConvert.SerializeObject(_chartService.GetDataForChart("TransactionsByPaPaymentType"));
     ViewBag.DataPoints_TransactionCategory = JsonConvert.SerializeObject(_chartService.GetDataForChart("TransactionsByTransactionCategory"));
     ViewBag.DataPoints_Budget          = JsonConvert.SerializeObject(_chartService.GetDataForChart("UpdateBudgetAfterTransaction"));
     ViewBag.DataPoints_BudgetMoneyLeft = _chartService.GetDataForChart("ActualBudgetMoneyLeft").ToList().FirstOrDefault().Y.ToString().Replace(",", ".");
     return(View());
 }