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()); }
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()); }
public long GetCount(NccPost.NccPostStatus status) { return(Query().Where(x => x.PostStatus == status && x.Status == EntityStatus.Active).Count()); }