Beispiel #1
0
 public ProvidersView GetProvider(long ukPrn)
 {
     try
     {
         var api      = new Providers.Api.Client.ProviderApiClient(_configuration.BaseUrl);
         var provider = api.Get(ukPrn);
         return(MapFrom(provider));
     }
     catch (HttpRequestException)
     {
         throw;
     }
     catch (EntityNotFoundException)
     {
         return(null);
     }
 }
Beispiel #2
0
 public ProvidersView GetProvider(long ukPrn)
 {
     try
     {
         var api      = new Providers.Api.Client.ProviderApiClient(_apprenticeshipInfoServiceApiBase);
         var provider = api.Get(ukPrn);
         return(MapFrom(provider));
     }
     catch (HttpRequestException)
     {
         throw;
     }
     catch (EntityNotFoundException)
     {
         return(null);
     }
 }