File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
DigitalLearningSolutions.Web/Controllers/SuperAdmin/Centres Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -425,8 +425,8 @@ public IActionResult AddCentre(AddCentreSuperAdminViewModel model)
425425 {
426426 var centreTypes = this . centresDataService . GetCentreTypes ( ) . ToList ( ) ;
427427 var regions = regionDataService . GetRegionsAlphabetical ( ) . ToList ( ) ;
428- model . RegionNameOptions = SelectListHelper . MapOptionsToSelectListItems ( regions ) ;
429- model . CentreTypeOptions = SelectListHelper . MapOptionsToSelectListItems ( centreTypes ) ;
428+ model . RegionNameOptions = SelectListHelper . MapOptionsToSelectListItems ( regions , model . RegionId ) ;
429+ model . CentreTypeOptions = SelectListHelper . MapOptionsToSelectListItems ( centreTypes , model . CentreTypeId ) ;
430430 return View ( model ) ;
431431 }
432432
You can’t perform that action at this time.
0 commit comments