public async Task <ConfirmationViewModel> GetConfirmationViewModelAsync(ReportRouteModel rrm) { var report = await GetReportAsync(rrm.ReportId); var vm = new ConfirmationViewModel { FromDate = ((DateTime)report.Parameters[ReportParameterName.FromDate]).AsGdsDate(), ToDate = ((DateTime)report.Parameters[ReportParameterName.ToDate]).AsGdsDate(), }; return(vm); }
public async Task <IActionResult> Confirmation(ReportRouteModel rrm) { var vm = await _orchestrator.GetConfirmationViewModelAsync(rrm); return(View(vm)); }