public IComandoResposta Exec(ComandoCriarPessoa comando) { comando.Validate(); if (comando.Invalid) { return(new ComandoGenericoResposta(false, "Erro", comando.Notifications)); } var novaPessoa = new EntidadePessoa(comando.Nome, comando.Email, comando.DataDeCadastro); _repositorioPessoa.Criar(novaPessoa); return(new ComandoGenericoResposta(true, "Sucesso", comando.Notifications)); }