示例#1
0
        public async Task <IActionResult> TaxaJuros()
        {
            try
            {
                var result = await _jurosService.ObterTaxaJuro();

                return(Ok(new
                {
                    resultado = result
                }));
            }
            catch (BusinessException be)
            {
                return(BadRequest(new { ErroObterTaxa = be.Message }));
            }
            catch (Exception e)
            {
                return(BadRequest(new { ErroObterTaxa = e.Message }));
            }
        }