Exemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var today     = DateTime.Today.ToString("yyyy/MM/dd");
            var viewModel = await _dashboardViewModelService.GetDashboardResult(today);

            return(View(viewModel));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index(string selectedDate, int?shiftId)
        {
            if (string.IsNullOrEmpty(selectedDate))
            {
                selectedDate = DateTime.Today.ToString("yyyy/MM/dd");
            }

            var viewModel = await _dashboardViewModelService.GetDashboardResult(selectedDate, shiftId);

            return(View(viewModel));
        }