/// <summary> /// /// </summary> /// <param name="subjectId"></param> /// <param name="featureId"></param> /// <param name="permissionType"></param> public void DeleteFeaturePermission(long subjectId, long featureId) { var featurePermissionManager = new FeaturePermissionManager(); try { featurePermissionManager.Delete(subjectId, featureId); } finally { featurePermissionManager.Dispose(); } }
/// <summary> /// /// </summary> /// <param name="featureId"></param> public void RemoveFeatureFromPublic(long featureId) { var featurePermissionManager = new FeaturePermissionManager(); try { if (featurePermissionManager.Exists(null, featureId)) { featurePermissionManager.Delete(null, featureId); } } finally { featurePermissionManager.Dispose();; } }