public void AssignTutor(string proposalId, string tutorId) { var proposal = _repository.ProposalOf(Id.FromExisting(proposalId)); proposal.AssignTutor(new Tutor(tutorId)); _repository.Save(proposal); }
public void DenyPricing( string proposalId, long suggestedPrice) { Proposal proposal = repository.ProposalOf(Id.FromExisting(proposalId)); proposal.DenyPricing(suggestedPrice); repository.Save(proposal); }