Example #1
0
 public List <NccPostDetails> LoadAllByPostStatusAndDate(NccPost.NccPostStatus status, DateTime dateTime)
 {
     return(_entityRepository
            .Query()
            .Include("Post")
            .Include("Post.PostDetails")
            .Where(x => x.Post.PostStatus == status && x.Post.PublishDate <= dateTime).ToList());
 }
Example #2
0
 public List <NccPost> LoadAllByPostStatusAndDate(NccPost.NccPostStatus status, DateTime dateTime)
 {
     return(_entityRepository
            .Query()
            .Include("Author")
            .Include("Comments")
            .Include("Categories")
            .Include("Tags")
            .Where(x => x.PostStatus == status && x.PublishDate <= dateTime).ToList());
 }
Example #3
0
 public long GetCount(NccPost.NccPostStatus status)
 {
     return(Query().Where(x => x.PostStatus == status && x.Status == EntityStatus.Active).Count());
 }