Ejemplo n.º 1
0
 public promotion_events CreatePromotion(promotion_events info, out string error)
 {
     error = string.Empty;
     try
     {
         promotion_events_DA da = new promotion_events_DA();
         da.CreatePromotion(info, out error);
         return info;
     }
     catch (Exception ex)
     {
         error += Share.BaseTool.FormatExceptionMessage(ex);
         return null;
     }
 }
Ejemplo n.º 2
0
        public bool CreatePromotionCoupons(promotion_coupons info, List<promotion_coupons_detail> detailList, List<promotion_coupons_usecase> usecaselist, out string error)
        {
            error = string.Empty;
            try
            {
                promotion_events_DA recipeDa = new promotion_events_DA();
                bool success = recipeDa.CreatePromotionCoupons(info, detailList, usecaselist, out error);
                return success;

            }
            catch (Exception ex)
            {
                error = Share.BaseTool.FormatExceptionMessage(ex);
                return false;
            }
        }