public JObject Unsubscribe(string email) { SubscriptionApi api = new SubscriptionApi(); SubscriptionResult result = api.Unsubscribe(email); if (result == SubscriptionResult.Success) return GetSubscriptionResult(true); else { _log.Information("Unable to unsubcribe '{0}' from a public list. Result: {1}", email, result); return GetSubscriptionResult(false); } }
public JObject Subscribe(string email, int recipientList) { SubscriptionApi api = new SubscriptionApi(); SubscriptionResult result = api.Subscribe(email, recipientList); if (result == SubscriptionResult.Success) return GetSubscriptionResult(true); else { _log.Information("Unable to subcribe '{0}' to a list {1}. Result: {2}", email, recipientList, result); return GetSubscriptionResult(false); } }
public JObject Unsubscribe(string email, int recipientList) { SubscriptionApi api = new SubscriptionApi(); SubscriptionResult result = api.Unsubscribe(email, recipientList); if (result == SubscriptionResult.Success) { return(GetSubscriptionResult(true)); } else { _log.Information("Unable to unsubcribe '{0}' from list '{1}'. Result: {2}", email, recipientList, result); return(GetSubscriptionResult(false)); } }
public JObject Subscribe(string email) { SubscriptionApi api = new SubscriptionApi(); SubscriptionResult result = api.Subscribe(email); if (result == SubscriptionResult.Success) { return(GetSubscriptionResult(true)); } else { _log.Information("Unable to subcribe '{0}' to a public list. Result: {1}", email, result); return(GetSubscriptionResult(false)); } }