From 9a05c514735941d4237879863011397c3076723d Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Thu, 30 Aug 2018 21:19:15 +0200 Subject: [PATCH] Remove the City constructor The City from the AirlineService doesn't have a constructor. --- Plattform/Plattform/Helper/GenerateData.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Plattform/Plattform/Helper/GenerateData.cs b/Plattform/Plattform/Helper/GenerateData.cs index bcc7acb..f697532 100644 --- a/Plattform/Plattform/Helper/GenerateData.cs +++ b/Plattform/Plattform/Helper/GenerateData.cs @@ -28,7 +28,12 @@ namespace Plattform.Helper { foreach (var item in ListCities) { - Cities.Add(new City(item, 3300)); + Cities.Add(new City + { + Name = item, + ZipCode = 3300 + } + ); } return Cities; }