Ejemplo n.º 1
0
        public string DeleteSubscription(string cellphone)
        {
            var token = TokenService.GetToken();

            if (!String.IsNullOrWhiteSpace(token))
            {
                try
                {
                    string subscriptioCancellation = SubscriptionService.CancellingSubscription(cellphone, token);
                    return(subscriptioCancellation);
                }
                catch (Exception ex)
                {
                    evLogger.LogEvent("Something went while cancelling subscription." + ex.Message + "\n" + ex.StackTrace, System.Diagnostics.EventLogEntryType.Error);
                }
            }
            return("Something went wrong cancelling subscription.");
        }