From a38ad9a78dd344434222a220ea4eeb41a55191d0 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 21 Aug 2018 21:04:57 +0200 Subject: [PATCH] add the Airport model to the Plattform project --- Plattform/Plattform/Models/Airport.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Plattform/Plattform/Models/Airport.cs diff --git a/Plattform/Plattform/Models/Airport.cs b/Plattform/Plattform/Models/Airport.cs new file mode 100644 index 0000000..4131e4b --- /dev/null +++ b/Plattform/Plattform/Models/Airport.cs @@ -0,0 +1,24 @@ +using System.Runtime.Serialization; +using System.Runtime.Serialization; +using Plattform; + +namespace Plattfrom.Models +{ + [DataContract] + public class Airport + { + [DataMember] + public string ShortName { get; set; } + [DataMember] + public string Name { get; set; } + [DataMember] + public virtual City City { get; set; } + public Airport(){ } + public Airport(AirlineService.Airport airport) + { + this.Name = airport.Name; + this.ShortName = airport.ShortName; + this.City = airport.City; + } + } +}