internal static NotificationMethodDisplay ToNotificationMethodDisplay(this INotificationGatewayMethod method)
 {
     return(AutoMapper.Mapper.Map <NotificationMethodDisplay>(method));
 }
        /// <summary>
        /// Deletes a <see cref="INotificationGatewayMethod"/>
        /// </summary>
        /// <param name="method">The <see cref="INotificationGatewayMethod"/> to be deleted</param>
        public void DeleteNotificationMethod(INotificationGatewayMethod method)
        {
            GatewayProviderService.Delete(method.NotificationMethod);

            NotificationMethods = null;
        }
        /// <summary>
        /// Deletes a <see cref="INotificationGatewayMethod"/>
        /// </summary>
        /// <param name="method">The <see cref="INotificationGatewayMethod"/> to be deleted</param>
        public void DeleteNotificationMethod(INotificationGatewayMethod method)
        {
            GatewayProviderService.Delete(method.NotificationMethod);

            NotificationMethods = null;
        }