AppExemplo.Domain.Cadastro.Service.ClienteService.Insert C# (CSharp) Method

Insert() public method

Insere um cliente
public Insert ( ClienteEntity entity ) : void
entity ClienteEntity objeto a ser inserido
return void
        public void Insert(ClienteEntity entity)
        {
            //Sempre valida o parametro
            if (entity == null) throw new ArgumentNullException(nameof(entity));

            //Verifica se pode inserir
            VerifyIfCanInsert(entity);

            //Insere na base
            _clienteRepository.Insert(entity);
        }
        /// <summary>