78 lines
2.7 KiB
C#
78 lines
2.7 KiB
C#
namespace CityInfo.API.Models
|
|
{
|
|
public class CityDataStore
|
|
{
|
|
public List<CityDto> Cities { get; set; }
|
|
|
|
public CityDataStore()
|
|
{
|
|
Cities = new List<CityDto>()
|
|
{
|
|
new CityDto()
|
|
{
|
|
Id = 1,
|
|
Name = "New York City",
|
|
Description = "The one with that big park.",
|
|
PointsOfInterest = new List<PointOfInterestDto>()
|
|
{
|
|
new PointOfInterestDto()
|
|
{
|
|
Id = 1,
|
|
Name = "Central Park",
|
|
Description = "The most visited urban park in the United States."
|
|
},
|
|
new PointOfInterestDto()
|
|
{
|
|
Id = 2,
|
|
Name = "Empire State Building",
|
|
Description = "A 102 Story skyscrapper located in Midtown Manathan."
|
|
}
|
|
}
|
|
},
|
|
new CityDto()
|
|
{
|
|
Id = 2,
|
|
Name = "Antwerp",
|
|
Description = "The one with the cathedral that was never really finished.",
|
|
PointsOfInterest = new List<PointOfInterestDto>()
|
|
{
|
|
new PointOfInterestDto()
|
|
{
|
|
Id = 3,
|
|
Name = "Antwerp Cathedral",
|
|
Description = "a beautiful Cathedral"
|
|
},
|
|
new PointOfInterestDto()
|
|
{
|
|
Id = 4,
|
|
Name = "Antwerp central station",
|
|
Description = "A train station"
|
|
}
|
|
}
|
|
},
|
|
new CityDto()
|
|
{
|
|
Id = 3,
|
|
Name = "Paris",
|
|
Description = "The one with that big tower.",
|
|
PointsOfInterest = new List<PointOfInterestDto>()
|
|
{
|
|
new PointOfInterestDto()
|
|
{
|
|
Id = 5,
|
|
Name = "Eiffel Tower",
|
|
Description = "A big tower."
|
|
},
|
|
new PointOfInterestDto()
|
|
{
|
|
Id = 6,
|
|
Name = "The Louvre",
|
|
Description = "A Museum."
|
|
}
|
|
}
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|