public IsSubscribedToTopic ( int topicId, int memberId ) : bool | ||
topicId | int | |
memberId | int | |
return | 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;
}