public async Task <double> Get(double valorInical, int meses)
    {
        try
        {
            await _taxaJurosService.Get();

            double idc        = _taxaJurosService.GetIdc();
            double ValorFinal = valorInical * Math.Pow(1 + idc, meses);;
            return(Math.Truncate(ValorFinal * 100) / 100);
        }
        catch (Exception e)
        {
            throw new Exception($"Erro calculando Valor atualizado, {e.Message}");
        }
    }
        public async Task <ActionResult> Get([FromServices] ITaxaJurosService service)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                return(Ok(await service.Get()));
            }
            catch (ArgumentException e)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, e.Message));
            }
        }
 public double Get()
 {
     return(_service.Get());
 }
 public string Get()
 {
     return(_service.Get().ToString("F2", CultureInfo.GetCultureInfo(_config.Culture).NumberFormat));
 }