34 lines
770 B
C#
34 lines
770 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Xml.XPath;
|
|
using System.Xml;
|
|
using NotificationsWeb.Services;
|
|
|
|
namespace NotificationsWeb.Library
|
|
{
|
|
|
|
//used from razor //
|
|
public class Utils
|
|
{
|
|
public static bool IsSubscribedToForum(int forumId, int memberId)
|
|
{
|
|
using(var ns = new NotificationService())
|
|
{
|
|
return ns.IsSubscribedToForum(forumId, memberId);
|
|
}
|
|
|
|
}
|
|
|
|
public static bool IsSubscribedToForumTopic(int topicId, int memberId)
|
|
{
|
|
using (var ns = new NotificationService())
|
|
{
|
|
return ns.IsSubscribedToTopic(topicId, memberId);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|