Пример #1
0
 public CharterIn ResolveCharterIn(CharterIn charter)
 {
     charter.Resolve(_charterInDomainService, _charterOutDomainService, _eventPublisher, vesselInCompanyDomainService, inventoryOperationNotifier);
     return charter;
 }
Пример #2
0
        public CharterIn ReCreateCharterIn(CharterIn charter)
        {
            charter.Resolve(_charterInDomainService, _charterOutDomainService, _eventPublisher, vesselInCompanyDomainService, inventoryOperationNotifier);

            //var init = this._workflowRepository.Single(c => c.WorkflowEntity == WorkflowEntities.CharterIn && c.CurrentWorkflowStage == WorkflowStages.Initial);
            //if (init == null)
            //    throw new ObjectNotFound("CharterInitialStep");

            //var charterWorkflowLog = new CharterWorkflowLog(charter, WorkflowEntities.CharterIn, DateTime.Now, WorkflowActions.Init, 1, "", init.Id, true);

            //charter.ApproveWorkflows.Add(charterWorkflowLog);

            return charter;
        }