Exemplo n.º 1
0
 public static List<Promotion> Convert(PromotionContract[] promotions)
 {
     List<Promotion> result = new List<Promotion>();
     for (int i = 0; i <= promotions.Length - 1; ++i)
     {
         result.Add(new Promotion(promotions[i]));
     }
     return result;
 }
Exemplo n.º 2
0
 public Promotion(PromotionContract promotion)
 {
     this.ID = promotion.ID;
     this.Date = promotion.Date;
     this.InputDateTime = promotion.InputDateTime;
     this.Document = promotion.Document;
     this.IDDocumentInitiator = promotion.IDDocumentInitiator;
     this.IDPromotionType = promotion.IDPromotionType;
     this.Description = promotion.Description;
 }