コード例 #1
0
ファイル: CityDTO.cs プロジェクト: Sceurpien/urbanwarming
 public CityDTO(City city)
 {
     Id       = city.Id;
     Name     = city.Name;
     Level    = city.Level;
     CityType = new CityTypeDTO(city.CityType);
     Location = new LocationDTO(city.Location);
 }
コード例 #2
0
ファイル: CityDTO.cs プロジェクト: Sceurpien/urbanwarming
 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);
 }