public IEnumerable <FcsDeliverableCodeMapping> GetContractDeliverableCodeMapping( IEnumerable <string> deliverableCodes, CancellationToken cancellationToken) { var deliverableCodeMappings = _referenceDataCache.GetContractDeliverableCodeMapping(deliverableCodes, cancellationToken); if (!deliverableCodeMappings.Any()) { deliverableCodeMappings = _fcsRepository.GetContractDeliverableCodeMapping(deliverableCodes, cancellationToken); _referenceDataCache.PopulateContractDeliverableCodeMappings(deliverableCodeMappings); } return(deliverableCodeMappings); }
public void PopulateContractDeliverableCodeMappings(IEnumerable <string> uncached, CancellationToken cancellationToken) { var mappings = _fcsRepository.GetContractDeliverableCodeMapping(uncached, cancellationToken); PopulateContractDeliverableCodeMappings(mappings); }