public IList <DuplicateResult> GetPidUriIdentifierOccurrences(string pidUri) { var types = _metadataService.GetInstantiableEntityTypes(Graph.Metadata.Constants.Resource.Type .FirstResouceType); var mergedDuplicateResults = new List <DuplicateResult>(); var instance = _identifierRepository.GetPidUriIdentifierOccurrences(new Uri(pidUri), types, GetInstanceGraph()); var draft = _identifierRepository.GetPidUriIdentifierOccurrences(new Uri(pidUri), types, GetResourceDraftInstanceGraph()); mergedDuplicateResults.AddRange(instance); // Todo: Look in both graphs!!!!!!! mergedDuplicateResults.AddRange(draft); // Todo: Look in both graphs!!!!!!! return(mergedDuplicateResults); }
public IList <DuplicateResult> GetPidUriIdentifierOccurrences(string pidUri) { var types = _metadataService.GetInstantiableEntityTypes(Graph.Metadata.Constants.Resource.Type.FirstResouceType); return(_identifierRepository.GetPidUriIdentifierOccurrences(new Uri(pidUri), types)); }