public void RemoveAllForumSubscriptions(int forumId) { _databaseContext.Database.Delete<ForumSubscriber>( "Where forumId=@0", forumId); }
void ForumService_Deleted(object sender, ForumEventArgs e) { var ns = new NotificationService(ApplicationContext.Current.DatabaseContext); ns.RemoveAllForumSubscriptions(e.Forum.Id); }