Ejemplo n.º 1
0
        public async Task <IActionResult> Statistik()
        {
            var date     = DateTime.Now.Date;
            var fromDate = date.AddMonths(-1);
            var toDate   = date;

            var dic = await _carWashBookingService.GetStatistik(fromDate, toDate);

            var statistik = new StatistikViewModel
            {
                FromDate = fromDate,
                ToDate   = toDate,
                Result   = dic
            };

            return(View(nameof(Statistik), statistik));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Update(StatistikViewModel statistik)
        {
            statistik.Result = await _carWashBookingService.GetStatistik(statistik.FromDate, statistik.ToDate);

            return(View(nameof(Statistik), statistik));
        }