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); } }
public static bool GiftPromosProductInsert(GiftPromo product) { return(Exigo.AddToGiftPromos(product)); }