public int TotalPosts(bool checkIsPublished = true) { return _session.Query<Post>().Where(p => !checkIsPublished || p.Published == true).Count(); }