Skip to content

Instantly share code, notes, and snippets.

@MarcoNicolodi
Last active October 14, 2019 23:01
Show Gist options
  • Save MarcoNicolodi/c107a05c2d43c8c589ec3254707d27e2 to your computer and use it in GitHub Desktop.
Save MarcoNicolodi/c107a05c2d43c8c589ec3254707d27e2 to your computer and use it in GitHub Desktop.
Proposal with access with other aggregates lacks boundaries
var proposal = _proposalRepository.Find(id);
proposal.Candidate.Ban();
proposalRepository.Save(proposal);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment