public static void SendNotifications(BaseController controller, Message message, SiteConfiguration config, ITopicsSubscriptionsService service)
 {
     if (!config.Notifications.Subscription.IsDefined)
     {
         return;
     }
     var threadUrl = controller.Domain;
     threadUrl += controller.Url.RouteUrl(new
     {
         controller = "Topics",
         action = "ShortUrl",
         id = message.Topic.Id
     });
     threadUrl += "#msg" + message.Id;
     //Build a generic url that can be replaced with the real values
     var unsubscribeUrl = controller.Domain + controller.Url.RouteUrl(new
     {
         controller = "TopicsSubscriptions",
         action = "Unsubscribe",
         uid = Int32.MaxValue,
         tid = message.Topic.Id,
         guid = Int64.MaxValue.ToString()
     });
     unsubscribeUrl = unsubscribeUrl.Replace(Int32.MaxValue.ToString(), "{0}");
     unsubscribeUrl = unsubscribeUrl.Replace(Int64.MaxValue.ToString(), "{1}");
     service.SendNotifications(message, controller.User.Id, threadUrl, unsubscribeUrl);
 }