partial void UpdateSpaceShip(SpaceShip instance);
partial void DeleteSpaceShip(SpaceShip instance);
partial void InsertSpaceShip(SpaceShip instance);
partial void DeleteSpaceShip(SpaceShip instance);
partial void UpdateSpaceShip(SpaceShip instance);
partial void InsertSpaceShip(SpaceShip instance);
/// <summary> /// Determines whether [is space ship occupation available] [the specified spaceship]. /// </summary> /// <param name="spaceship">The spaceship.</param> /// <returns> /// <c>true</c> if [is space ship occupation available] [the specified spaceship]; otherwise, <c>false</c>. /// </returns> private bool IsSpaceShipOccupationAvailable(SpaceShip spaceship) { var ocupationsCurrentSpaceship = this.spaceShipOcupationDataRepository.GetSpaceShipOcupations(IdSpaceship); return ocupationsCurrentSpaceship.Count() < spaceship.MaximumPassengers; }