public async Task <IActionResult> DiagnoseStats(string returnUrl) { var now = DateTime.Now; var vm = new DiagnoseStatsViewModel { Start = new DateTime(now.Year, now.Month, 1), End = now.Date, ReturnUrl = returnUrl }; vm.Stats = await _statsService.GetIssueStats(vm.Start, vm.End); return(View(vm)); }
public async Task <IActionResult> DiagnoseStats(DiagnoseStatsViewModel viewModel) { viewModel.Stats = await _statsService.GetIssueStats(viewModel.Start, viewModel.End); return(View(viewModel)); }