public void PopulateLookups(Lookups lookupData, InMemoryLookups inMemoryLookups) { Aircraft = lookupData.Aircraft.FirstOrDefault(x => x.id == AircraftId); Capacity = inMemoryLookups.Capacities.FirstOrDefault(x => x.Id == CapacityId); From = lookupData.Airfields.FirstOrDefault(x => x.id == AirfieldFromId); To = lookupData.Airfields.FirstOrDefault(x => x.id == AirfieldToId); this.Lookups = lookupData; Capacities = inMemoryLookups.Capacities; }