EventServer.Core.Domain.PostExtensions.Published C# (CSharp) Method

Published() public static method

public static Published ( this source ) : EventServer.Core.Domain.Post[]
source this
return EventServer.Core.Domain.Post[]
        public static Post[] Published(this IQueryable<Post> source)
        {
            return source
                .Where(x => x.IsPublished)
                .Where(x => x.DateCreated <= DateTime.Now)
                .OrderByDescending(x => x.DateCreated)
                .ToArray();
        }
PostExtensions