Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }