public async Task <CalcularJurosCompostosResult> CalcularJurosCompostosAsync(CalcularJurosCompostosCommand command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } var result = await _jurosService.CorrigirValorAsync(command.ValorInicial, command.Meses); return(new CalcularJurosCompostosResult { ValorCorrigido = result.ValorFinal }); }