public TaxRatesService(Uri baseUrl, string token) { _httpClient = new HttpClient(new HttpClientHandler()) { BaseAddress = baseUrl }; _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token); _taxRatesService = RestService.For <ITaxRatesService>(_httpClient); }
public TaxRatesController(ITaxRatesService taxRatesService, IMunicipalityService mService) { this.taxRatesService = taxRatesService; this.mService = mService; }