public ActionResult OptionsSetDelete(int id, int productAttributeId) { var entity = _productAttributeService.GetProductAttributeOptionsSetById(id); _productAttributeService.DeleteProductAttributeOptionsSet(entity); return(OptionsSetList(productAttributeId)); }
public ActionResult OptionsSetDelete(int id, int productAttributeId, GridCommand command) { if (_permissionService.Authorize(StandardPermissionProvider.ManageCatalog)) { var entity = _productAttributeService.GetProductAttributeOptionsSetById(id); _productAttributeService.DeleteProductAttributeOptionsSet(entity); } return(OptionsSetList(productAttributeId, command)); }