public static object OpenCampaignID(EvaluationContext context, params object[] parameters) { try { var campaign = ShoppingCartHelper.GetOpenCampaign(); return(campaign != null? campaign.CampaignID:default(int)); } catch (Exception ex) { EventLogProvider.LogInformation("Kadena Macro methods", "OpenCampaignID", ex.Message); return(default(int)); } }