Created
October 15, 2019 01:13
-
-
Save MarcoNicolodi/7fe8c5e0d3bcb944373fc384bbfae8ff to your computer and use it in GitHub Desktop.
Proposal service passing domain service to proposal Accept method as argument
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProposalService | |
{ | |
public void AcceptProposal(Guid proposalId) | |
{ | |
var proposal = _repository.Find(proposalId); | |
proposal.Accept(domainService); | |
_repository.Save(proposal); | |
_logger.Info($"Proposal {proposal.id} was accepted"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment