public IActionResult Consult(string cpf) { try { return(Ok(_service.Consult(cpf))); }catch (Exception ex) { return(BadRequest(ex.Message)); } }
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)); } }