Пример #1
0
        public HttpResponseMessage DeleteNotificationMethod(Guid id)
        {
            var response = Request.CreateResponse(HttpStatusCode.OK);

            try
            {
                var provider = _notificationContext.GetProviderByMethodKey(id);
                var method   = provider.GetNotificationGatewayMethodByKey(id);
                provider.DeleteNotificationMethod(method);
            }
            catch (Exception ex)
            {
                response = Request.CreateResponse(HttpStatusCode.InternalServerError, string.Format("{0}", ex.Message));
            }

            return(response);
        }