Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public async Task <CalculateTaxServiceResponse> GetTaxCalculation(CalculateTaxServiceRequest req)
 {
     return(await _calculateTaxService.CalculateTax(req).ConfigureAwait(false));
 }