Skip to content
Snippets Groups Projects
Commit 5ffde39e authored by jenda's avatar jenda
Browse files

Fix fucking planes

parent 2cda306a
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
{ {
using var dbContext = new LocalDatabaseContext(configuration); using var dbContext = new LocalDatabaseContext(configuration);
var firstAirplane = dbContext.Airplanes.FirstOrDefault(airplane => airplane.Id == airplaneModel.Id); var firstAirplane = dbContext.ClubAirplanes.FirstOrDefault(airplane => airplane.Id == airplaneModel.Id);
if (firstAirplane != null) if (firstAirplane != null)
{ {
airplaneId = firstAirplane.Id; airplaneId = firstAirplane.Id;
......
...@@ -186,13 +186,13 @@ ...@@ -186,13 +186,13 @@
dbContext.ClubAirplanes.AddRange( dbContext.ClubAirplanes.AddRange(
new ClubAirplane new ClubAirplane
{ {
Id = 2, Id = 1,
Immatriculation = "OK-B123", Immatriculation = "OK-B123",
AirplaneType = new AirplaneType { Type = "L-13A Blaník" } AirplaneType = new AirplaneType { Type = "L-13A Blaník" }
}, },
new ClubAirplane new ClubAirplane
{ {
Id = 1, Id = 2,
Immatriculation = "OK-V23424", Immatriculation = "OK-V23424",
AirplaneType = new AirplaneType { Type = "Zlín Z-42M" } AirplaneType = new AirplaneType { Type = "Zlín Z-42M" }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment