コード例 #1
0
        public async Task <ActionResult> AatfAePublicRegister(AatfAePublicRegisterViewModel model)
        {
            SetBreadcrumb();
            ViewBag.TriggerDownload = ModelState.IsValid;

            await PopulateFilters(model);

            return(View(model));
        }
コード例 #2
0
        public async Task <ActionResult> AatfAePublicRegister()
        {
            SetBreadcrumb();
            ViewBag.TriggerDownload = false;

            var model = new AatfAePublicRegisterViewModel();

            await PopulateFilters(model);

            return(View("AatfAePublicRegister", model));
        }
コード例 #3
0
 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();
 }