public static List<PromotionType> Convert(PromotionTypeContract[] promotionTypes) { List<PromotionType> result = new List<PromotionType>(); for (int i = 0; i <= promotionTypes.Length - 1; ++i) { result.Add(new PromotionType(promotionTypes[i])); } return result; }
public PromotionType(PromotionTypeContract promotionType) { this.ID = promotionType.ID; this.Name = promotionType.Name; }