Exemple #1
0
 public void AddCrewRequirement(CrewRequirement crewRequirement, AircraftProperties aircraftProperties, License license)
 {
     crewRequirement.AircraftPropertiesId = aircraftProperties.AircraftPropertiesId;
     crewRequirement.LicenseType          = license.LicenseType;
     _crewRequirementRepository.Add(crewRequirement);
     _crewRequirementRepository.SaveChanges();
 }
Exemple #2
0
 public void AddAircraftProperties(AircraftProperties aircraftProperties)
 {
     _aircraftPropertiesRepository.Add(aircraftProperties);
     _aircraftPropertiesRepository.SaveChanges();
 }
Exemple #3
0
 public void AddAircraft(Aircraft aircraft, AircraftProperties aircraftProperties)
 {
     aircraft.AircraftPropertiesId = aircraftProperties.AircraftPropertiesId;
     _aircraftRepository.Add(aircraft);
     _aircraftRepository.SaveChanges();
 }