Example #1
0
 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;
 }
Example #2
0
 public PenaltyType(PenaltyTypeContract penaltyType)
 {
     this.ID = penaltyType.ID;
     this.Name = penaltyType.Name;
 }