Skip to content

Commit

Permalink
checkispublished issue fix in blogrepository
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiderSpins committed May 10, 2016
1 parent b20cd44 commit 53681ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JustBlog/JustBlog.Core/BlogRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public IList<Post> PostsForSearch(string search, int pageNo, int pageSize)
/// <returns></returns>
public int TotalPosts(bool checkIsPublished = true)
{
return _session.Query<Post>().Where(p => checkIsPublished || p.Published == true).Count();
return _session.Query<Post>().Where(p => !checkIsPublished || p.Published == true).Count();
}

/// <summary>
Expand Down

0 comments on commit 53681ae

Please sign in to comment.