add the Airport model to the Plattform project
This commit is contained in:
parent
87f382764e
commit
a38ad9a78d
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue