Exemplo n.º 1
0
 public int SavePromotion(Promotion promotion)
 {
     PromotionDL promotionDL=new PromotionDL();
     if (promotion.PromotionID > 0)
         return promotionDL.UpdatePromotion(promotion);
     else
         return promotionDL.SavePromotion(promotion);
 }
Exemplo n.º 2
0
        public List<Promotion> GetPromotions(bool allSelection, bool? showOnFirstPage)
        {
            PromotionDL promotionDL = new PromotionDL();
            List<Promotion> promotions = promotionDL.GetPromotions(showOnFirstPage);

            if (allSelection && promotions != null)
                promotions.Insert(0, new Promotion(0, "Odaberi", 0, string.Empty, 0, false, DateTime.MinValue, DateTime.Now, string.Empty));

            return promotions;
        }
Exemplo n.º 3
0
 public Promotion GetPromotion(int promotionID)
 {
     PromotionDL promotionDL = new PromotionDL();
     return promotionDL.GetPromotion(promotionID);
 }
Exemplo n.º 4
0
 public int DeletePromotion(int promotionID)
 {
     PromotionDL promotionDL = new PromotionDL();
     return promotionDL.DeletePromotion(promotionID);
 }