OurUmbraco.NotificationsWeb.Services.NotificationService.IsSubscribedToTopic C# (CSharp) Méthode

IsSubscribedToTopic() public méthode

public IsSubscribedToTopic ( int topicId, int memberId ) : bool
topicId int
memberId int
Résultat bool
        public bool IsSubscribedToTopic(int topicId, int memberId)
        {
            return _databaseContext.Database.SingleOrDefault<ForumTopicSubscriber>(
                 "SELECT * FROM forumtopicsubscribers WHERE topicId=@0 and memberId=@1",
                 topicId,
                 memberId) != null;
        }