Files
OurUmbraco/NotificationsWeb/Library/Utils.cs
T

31 lines
797 B
C#
Raw Normal View History

2015-02-05 14:02:32 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.XPath;
using System.Xml;
using NotificationsWeb.Services;
using Umbraco.Core;
2015-02-05 14:02:32 +01:00
namespace NotificationsWeb.Library
{
//used from razor //
2015-02-05 14:02:32 +01:00
public class Utils
{
public static bool IsSubscribedToForum(int forumId, int memberId)
{
var ns = new NotificationService(ApplicationContext.Current.DatabaseContext);
return ns.IsSubscribedToForum(forumId, memberId);
2015-02-05 14:02:32 +01:00
}
public static bool IsSubscribedToForumTopic(int topicId, int memberId)
{
var ns = new NotificationService(ApplicationContext.Current.DatabaseContext);
return ns.IsSubscribedToTopic(topicId, memberId);
2015-02-05 14:02:32 +01:00
}
}
}