Exemple #1
0
        public async Task <IActionResult> ConsultarClientePorCpf(string cpf)
        {
            var cliente = await _clienteAppService.ConsultarClientePorCpf(cpf);

            if (cliente == null)
            {
                return(NotFound("Cliente não encontrado."));
            }

            return(Ok(cliente));
        }