public virtual IActionResult ValueCreatePopup(int vendorAttributeId) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings)) return AccessDeniedView(); //try to get a vendor attribute with the specified id var vendorAttribute = _vendorAttributeService.GetVendorAttributeById(vendorAttributeId); if (vendorAttribute == null) return RedirectToAction("List"); //prepare model var model = _vendorAttributeModelFactory.PrepareVendorAttributeValueModel(new VendorAttributeValueModel(), vendorAttribute, null); return View(model); }