Example #1
0
 public static bool AddToGiftPromos(GiftPromo product)
 {
     using (var context = Exigo.Sql())
     {
         var SqlProcedure = string.Format("InsertGiftPromo '{0}',{1},{2},'{3}','{4}','{5}',{6},'{7}'",
                                          product.ItemCode, product.DiscountPrecent, product.SalesThreshold, product.StartDate, product.EndDate, product.Description.Replace("'", "''"), product.DiscountType, product.CreatedDate);
         var styleAmbassadorRewardSettings = context.Query <PromoCode>(SqlProcedure).FirstOrDefault();
         return(true);
     }
 }
Example #2
0
 public static bool GiftPromosProductInsert(GiftPromo product)
 {
     return(Exigo.AddToGiftPromos(product));
 }