Remove the City constructor

The City from the AirlineService doesn't have a constructor.
This commit is contained in:
Andreas Zweili 2018-08-30 21:19:15 +02:00
parent 8b3d023ff8
commit 9a05c51473
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}