Esempio n. 1
0
 public CityDTO(City city)
 {
     Id       = city.Id;
     Name     = city.Name;
     Level    = city.Level;
     CityType = new CityTypeDTO(city.CityType);
     Location = new LocationDTO(city.Location);
 }
Esempio n. 2
0
 public CityDTO(int id, string name, int level, CityType cityType, Location location)
 {
     Id       = id;
     Name     = name;
     Level    = level;
     CityType = new CityTypeDTO(cityType);
     Location = new LocationDTO(location);
 }