Ejemplo n.º 1
0
 public IActionResult Consult(string cpf)
 {
     try
     {
         return(Ok(_service.Consult(cpf)));
     }catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Ejemplo n.º 2
0
        public IActionResult Consult(string cpf)
        {
            var parameters = new Models.Parameter.Request.CreditConsult();

            parameters.Cpf = cpf;

            try
            {
                return(Ok(_service.Consult(parameters)));
            }catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }