diff --git a/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs b/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs index 12f70f8..2d69ba6 100644 --- a/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs +++ b/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs @@ -75,18 +75,18 @@ private void ConfigureFlightsTable(EntityTypeBuilder builder) .HasConversion( f => f.Value, value => PriceId.Create(value)); - + builder.Property(f => f.ComfortPriceId) .ValueGeneratedNever() .HasConversion( f => f.Value, value => PriceId.Create(value)); - + builder.Property(f => f.BusinessPriceId) .ValueGeneratedNever() .HasConversion( f => f.Value, value => PriceId.Create(value)); - + } } \ No newline at end of file diff --git a/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs b/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs index e3e9eca..0e8fffc 100644 --- a/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs +++ b/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs @@ -33,7 +33,7 @@ join comPrice in _dbContext.Prices on flight.ComfortPriceId equals comPrice.Id join busPrice in _dbContext.Prices on flight.BusinessPriceId equals busPrice.Id join dAirport in _dbContext.Airports on flight.DepartureAirportId equals dAirport.Id join aAirport in _dbContext.Airports on flight.ArrivalAirportId equals aAirport.Id - + where dAirport.IataCode == departureAirportIataCode && aAirport.IataCode == arrivalAirportIataCode && flight.ScheduledDeparture.Year == departureDate.Value.Year