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