public static Airport RestoreAirport(AirportStatus airport) { Airport restoredPort = new Airport((builder) => { builder.RestoreAirport(airport.Stations, airport.Routes); }, airport.Name, airport.ImageUrl); return(restoredPort); }
public DbAirport ConvertAirport(AirportStatus commonAirport) { return(new DbAirport() { Id = commonAirport.Id, Name = commonAirport.Name, Stations = ConvertStations(commonAirport.Stations).ToList(), ImageUrl = commonAirport.ImageUrl, Routes = ConvertRoutes(commonAirport.Routes), }); }
public Airport ConvertAirport(AirportStatus commonAirport) { return(Airport.RestoreAirport(commonAirport)); }
public Airport ConvertAirport(DbAirport dbAirport) { AirportStatus commonAirport = this.commonToDbConvert.ConvertAirport(dbAirport); return(this.logicToCommon.ConvertAirport(commonAirport)); }