//NOP 3.828 public ActionResult DistrictEdit(int id) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageCountries)) { return(AccessDeniedView()); } var state = _stateProvinceService.GetStateProvinceByStateProvinceId(id); if (state == null) { //No country found with the specified id return(RedirectToAction("List")); } var model = state.ToModel(); //locales AddLocales(_languageService, model.Locales, (locale, languageId) => { locale.Name = state.GetLocalized(x => x.Name, languageId, false, false); }); return(View(model)); }