public void DeleteOrphanedIdentifier(string identifierUri)
 {
     if (Uri.TryCreate(identifierUri, UriKind.Absolute, out Uri uri))
     {
         _identifierRepository.DeleteOrphanedIdentifier(uri);
     }
     else
     {
         throw new InvalidFormatException(Graph.Metadata.Constants.Messages.Identifier.IncorrectIdentifierFormat, identifierUri);
     }
 }
Example #2
0
 public void DeleteOrphanedIdentifier(string identifierUri, bool checkInOrphanedList = true)
 {
     if (Uri.TryCreate(identifierUri, UriKind.Absolute, out Uri uri))
     {
         _identifierRepository.DeleteOrphanedIdentifier(uri, GetInstanceGraph(), GetResourceDraftInstanceGraph(), GetHistoricInstanceGraph(), checkInOrphanedList);
     }
     else
     {
         throw new InvalidFormatException(Graph.Metadata.Constants.Messages.Identifier.IncorrectIdentifierFormat,
                                          identifierUri);
     }
 }