コード例 #1
0
        /// <summary>Territories.</summary>
        /// <param name="territoryId">         Identifier for the territory.</param>
        /// <param name="territoryDescription">Information describing the territory.</param>
        /// <param name="regionId">            Identifier for the region.</param>
        /// <returns>A Territory.</returns>
		public static Territory Territory(string territoryId, string territoryDescription, int regionId)
		{
			Territory territory = new Territory();
			territory.Id = territoryId;
			territory.TerritoryDescription = territoryDescription;
			territory.RegionId = regionId;
			return territory;
		}
コード例 #2
0
		public static TerritoryDto ToTerritoryDto(Territory model)
		{
			return new TerritoryDto {
				Id = model.Id,
				RegionId = model.RegionId,
				TerritoryDescription = model.TerritoryDescription,
			};
		}