public virtual IActionResult ValueList(VendorAttributeValueSearchModel searchModel) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings)) return AccessDeniedKendoGridJson(); //try to get a vendor attribute with the specified id var vendorAttribute = _vendorAttributeService.GetVendorAttributeById(searchModel.VendorAttributeId) ?? throw new ArgumentException("No vendor attribute found with the specified id"); //prepare model var model = _vendorAttributeModelFactory.PrepareVendorAttributeValueListModel(searchModel, vendorAttribute); return Json(model); }