public ActionResult OptionDelete(int id)
        {
            var entity = _productAttributeService.GetProductAttributeOptionById(id);

            _productAttributeService.DeleteProductAttributeOption(entity);

            return(new EmptyResult());
        }
        public ActionResult OptionDelete(int id)
        {
            if (_permissionService.Authorize(StandardPermissionProvider.ManageCatalog))
            {
                var entity = _productAttributeService.GetProductAttributeOptionById(id);

                _productAttributeService.DeleteProductAttributeOption(entity);
            }

            return(new EmptyResult());
        }
Exemple #3
0
        public ActionResult OptionDelete(int optionId, int productAttributeId, GridCommand command)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageCatalog))
            {
                return(AccessDeniedView());
            }

            var sao = _productAttributeService.GetProductAttributeOptionById(optionId);

            _productAttributeService.DeleteProductAttributeOption(sao);

            return(OptionList(productAttributeId, command));
        }