public virtual IActionResult DeleteSpecificationAttributeGroup(int id) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageAttributes)) { return(AccessDeniedView()); } var specificationAttributeGroup = _specificationAttributeService.GetSpecificationAttributeGroupById(id); if (specificationAttributeGroup == null) { return(RedirectToAction("List")); } _specificationAttributeService.DeleteSpecificationAttributeGroup(specificationAttributeGroup); _customerActivityService.InsertActivity("DeleteSpecAttributeGroup", string.Format(_localizationService.GetResource("ActivityLog.DeleteSpecAttributeGroup"), specificationAttributeGroup.Name), specificationAttributeGroup); _notificationService.SuccessNotification(_localizationService.GetResource("Admin.Catalog.Attributes.SpecificationAttributes.SpecificationAttributeGroup.Deleted")); return(RedirectToAction("List")); }