//edit public virtual ActionResult PredefinedArticleAttributeValueEditPopup(int id) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageAttributes)) { return(AccessDeniedView()); } var ppav = _articleAttributeService.GetPredefinedArticleAttributeValueById(id); if (ppav == null) { throw new ArgumentException("No article attribute value found with the specified id"); } var model = new PredefinedArticleAttributeValueModel { ArticleAttributeId = ppav.ArticleAttributeId, Name = ppav.Name, PriceAdjustment = ppav.PriceAdjustment, WeightAdjustment = ppav.WeightAdjustment, Cost = ppav.Cost, IsPreSelected = ppav.IsPreSelected, DisplaySubscription = ppav.DisplaySubscription }; //locales AddLocales(_languageService, model.Locales, (locale, languageId) => { locale.Name = ppav.GetLocalized(x => x.Name, languageId, false, false); }); return(View(model)); }