public async Task <ActionResult> UkEeeData(UkEeeDataViewModel model) { SetBreadcrumb(); ViewBag.TriggerDownload = ModelState.IsValid; await PopulateFilters(model); return(View(model)); }
public async Task <ActionResult> UkEeeData() { SetBreadcrumb(); ViewBag.TriggerDownload = false; var model = new UkEeeDataViewModel(); await PopulateFilters(model); return(View("UkEeeData", model)); }
private async Task PopulateFilters(UkEeeDataViewModel model) { var years = await FetchComplianceYearsForDataReturns(); model.ComplianceYears = new SelectList(years); }