public bool CheckPeriodCharterInValid(CharterOut charterOut,long vesselInCompanyId, long ownerId,ICharterInRepository charterInRepository)
        {
            //    var res = charterInRepository.GetAll().Where(c => c.VesselInCompanyId == vesselInCompanyId
               //                                                      && c.OwnerId == ownerId).OrderBy(c => c.ActionDate).Last();
               //    if (b)
               //    {

               //    }
               return false;
        }
 public CharterInApplicationService(ICharterInRepository charterInRepository,
     ICharterInToDtoMapper charterInToDtoMapper, IUnitOfWorkScope unitOfWorkScope,
     IWorkflowRepository workflowRepository, ICharterOutDomainService charterOutDomainService,
     ICharterInDomainService charterInDomainService, IEventPublisher eventPublisher, IVesselInCompanyDomainService vesselInCompanyDomainService, IInventoryOperationNotifier inventoryOperationNotifier)
 {
     this._charterInRepository = charterInRepository;
     this._charterInToDtoMapper = charterInToDtoMapper;
     this._unitOfWorkScope = unitOfWorkScope;
     _charterFactory = new CharterFactory(workflowRepository,
              charterInDomainService, charterOutDomainService, eventPublisher, vesselInCompanyDomainService, inventoryOperationNotifier);
 }
        public CharterInFacadeService(

         ICharterInApplicationService charterInApplicationService,
         ICharterInRepository charterInRepository,
         ICharterInToDtoMapper charterInToDtoMapper,
         ICharterItemToDtoMapper charterItemToDtoMapper,
            IInventoryOperationToInventoryOperationDtoMapper inventoryOperationDtoMapper,
            IEntityConfigurator<Charter> configurator 
)
        {
            _charterInApplicationService = charterInApplicationService;
            _charterInRepository = charterInRepository;
            _charterInToDtoMapper = charterInToDtoMapper;
            _charterItemToDtoMapper = charterItemToDtoMapper;
            _inventoryOperationDtoMapper = inventoryOperationDtoMapper;
            _configurator = configurator;
        }
 public CharterInDomainService(ICharterInRepository charterInRepository, IRepository<CharterItem> charterItemRepository)
 {
     this._charterInRepository = charterInRepository;
     this._charterItemRepository = charterItemRepository;
 }
 public CharteringDomainService(ICharterInRepository charterInRepository, ICharterOutRepository charterOutRepository)
 {
     this.charterInRepository = charterInRepository;
     this.charterOutRepository = charterOutRepository;
 }