Example #1
0
        public ActionResult LastYear()
        {
            ViewBag.Message = "Charts.";

            ChartsViewModel chartsViewModel = new ChartsViewModel(Average.ChartSpans.LastYear);

            chartsViewModel.Load();

            return(View("Index", chartsViewModel));
        }
Example #2
0
        public ActionResult Index()
        {
            ViewBag.Message = "Charts.";

            ChartsViewModel chartsViewModel = new ChartsViewModel(Average.ChartSpans.Last48Hours);

            chartsViewModel.Load();

            return(View(chartsViewModel));
        }