Example #1
0
 internal void DeleteRoleAssignment(AzRoleAssignment roleAssignment)
 {
     if (roleAssignment == null)
     {
         return;
     }
     RoleAssignments.Remove(roleAssignment);
     IAzScope.DeleteRole(roleAssignment.Name);
     HasChanged = true;
 }
Example #2
0
 public void DeleteRole(string name)
 {
     if (_application != null)
     {
         _application.DeleteRole(name);
     }
     else
     {
         _scope.DeleteRole(name);
     }
 }