public async Task <double> Post([FromQuery] double valorInicial, [FromQuery] int meses) { double tax = await _externalApiService.GetExternalResponseAsync <double>("taxajuros"); double finalValue = _calculateTaxService.CalculateTax(valorInicial, meses, tax); return(finalValue); }
public async Task <CalculateTaxServiceResponse> GetTaxCalculation(CalculateTaxServiceRequest req) { return(await _calculateTaxService.CalculateTax(req).ConfigureAwait(false)); }