public Task <IEnumerable <ProductResult> > GetAll() { try { return(retryPolicy.ExecuteAsync(async() => await client.GetAll())); } catch (Exception ex) { return(null); } }
public async Task <IEnumerable <ProductResult> > GetAll() { try { return(await productClient.GetAll()); } catch (Exception ex) { throw ex; } }