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