diff --git a/Plattform/Plattform/IPlattformService.cs b/Plattform/Plattform/IPlattformService.cs index 69e65d1..d371eb0 100644 --- a/Plattform/Plattform/IPlattformService.cs +++ b/Plattform/Plattform/IPlattformService.cs @@ -6,6 +6,7 @@ using System.ServiceModel; using System.Text; using Plattform.DB; using Plattform.Models; +using Plattform.AirlineService; namespace Plattform { @@ -27,5 +28,7 @@ namespace Plattform List GetGenders(); [OperationContract] List GetSaluations(); + [OperationContract] + List GetCities(); } } diff --git a/Plattform/Plattform/PlattformService.svc.cs b/Plattform/Plattform/PlattformService.svc.cs index 88e4572..7888cb9 100644 --- a/Plattform/Plattform/PlattformService.svc.cs +++ b/Plattform/Plattform/PlattformService.svc.cs @@ -103,5 +103,18 @@ namespace Plattform return new List(); } } + public List GetCities() + { + CityDB cityDB = new CityDB(); + try + { + return cityDB.GetAllCities(); + } + catch(Exception e) + { + System.Diagnostics.Trace.WriteLine(e); + return new List(); + } + } } }