Beispiel #1
0
        public UsuarioAutenticadoResponse AutenticarPessoa(string cpf, string senha)
        {
            if (!String.IsNullOrWhiteSpace(cpf) || !String.IsNullOrWhiteSpace(senha))
            {
                if (!Pessoa.ValidarCpf(cpf))
                {
                    return(null);
                }
            }

            return((UsuarioAutenticadoResponse)repositoryPessoa.ConsultarPessoaPorCpfSenha(cpf, senha));
        }