예제 #1
0
        public void CreateHistoricCase(Guid commandId, Guid historicCaseId, Guid caseId, int revision)
        {
            // Get case from repo
            var @case = caseRepository.Get(caseId, revision);

            // Create HistoricCase
            var historicCase = new HistoricCase(Guid.NewGuid(), @case);

            // Persist
            historicCaseRepository.Store(commandId, historicCase);
        }
예제 #2
0
 public void Store(Guid commandId, HistoricCase historicCase)
 {
     persistance.Store(commandId, historicCase);
 }