public static List<PenaltyType> Convert(PenaltyTypeContract[] penaltyTypes) { List<PenaltyType> result = new List<PenaltyType>(); for (int i = 0; i <= penaltyTypes.Length - 1; ++i) { result.Add(new PenaltyType(penaltyTypes[i])); } return result; }
public PenaltyType(PenaltyTypeContract penaltyType) { this.ID = penaltyType.ID; this.Name = penaltyType.Name; }