Esempio n. 1
0
 public static List<Penalty> Convert(PenaltyContract[] penalties)
 {
     List<Penalty> result = new List<Penalty>();
     for(int i = 0; i <= penalties.Length - 1; ++i)
     {
         result.Add(new Penalty(penalties[i]));
     }
     return result;
 }
Esempio n. 2
0
 public Penalty(PenaltyContract penalty)
 {
     this.ID = penalty.ID;
     this.Date = penalty.Date;
     this.InputDateTime = penalty.InputDateTime;
     this.Document = penalty.Document;
     this.IDDocumentInitiator = penalty.IDDocumentInitiator;
     this.IDPenaltyType = penalty.IDPenaltyType;
     this.Description = penalty.Description;
     this.DocumentDestroy = penalty.DocumentDestroy;
 }