Beispiel #1
0
        public async Task <IActionResult> CalculaJuros(decimal valorInicial, int quantidadeMeses)
        {
            var taxaJuros = await _taxaQueries.ObterTaxaDeJuros();

            ResultMessageResponse <decimal> result = await _mediator.Send(CalculaJurosCommand.Factory.Create(valorInicial, quantidadeMeses, taxaJuros));

            return(Ok(result));
        }
Beispiel #2
0
        public async Task <IActionResult> ObterTaxaDeJuros()
        {
            ResultMessageResponse <decimal> result = await _taxa.ObterTaxaDeJuros();

            return(Ok(result));
        }