public async Task <ActionResult> AatfAePublicRegister(AatfAePublicRegisterViewModel model) { SetBreadcrumb(); ViewBag.TriggerDownload = ModelState.IsValid; await PopulateFilters(model); return(View(model)); }
public async Task <ActionResult> AatfAePublicRegister() { SetBreadcrumb(); ViewBag.TriggerDownload = false; var model = new AatfAePublicRegisterViewModel(); await PopulateFilters(model); return(View("AatfAePublicRegister", model)); }
private async Task PopulateFilters(AatfAePublicRegisterViewModel model) { model.ComplianceYears = new SelectList(await FetchComplianceYearsForAatf()); model.FacilityTypes = new SelectList(EnumHelper.GetValues(typeof(FacilityType)), "Key", "Value"); model.CompetentAuthoritiesList = await CompetentAuthoritiesList(); }