public override void OnActionExecuting(ActionExecutingContext actionContext) { if (!FeaturesUtility.GlobalModuleExists(_moduleName)) { throw new FeatureNotFoundException(_displayName ?? _moduleName); } }
public override void OnActionExecuting(ActionExecutingContext actionContext) { if (_require) { if (!FeaturesUtility.HasAnyGlobalModule()) { throw new FeatureNotFoundException(NAME); } } else { if (FeaturesUtility.HasAnyGlobalModule()) { throw new AlreadyExistsException(NAME); } } }