add the Airport model to the Plattform project

This commit is contained in:
Andreas Zweili 2018-08-21 21:04:57 +02:00
parent 87f382764e
commit a38ad9a78d
1 changed files with 24 additions and 0 deletions

View File

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