コード例 #1
0
        public async Task <bool> CheckIfExists(string dsEmail, string dsCpfCnpj)
        {
            bool exists = await _clienteRepository.CheckIfExists(dsEmail, dsCpfCnpj);

            if (exists)
            {
                DomainEvent.DomainNotify(AssertionConcern.AssertFalse(exists, "Cliente já possui Email e/ou CPF já cadastrado"));
            }

            return(exists);
        }