Created
October 11, 2019 01:25
-
-
Save MarcoNicolodi/f71f600ac84e1184b81b8cf3bba45247 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 DomainService | |
{ | |
public class DenyOtherCompaniesProposals(Proposal proposal) | |
{ | |
var proposalsToDeny = _repository.FindOpenForCandidate(proposal.CandidateId); | |
foreach(var proposal in proposalsToDeny) | |
proposal.Deny(); | |
_repository.Save(proposalsToDeny); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment