Cake.Web.Core.Content.Blog.BlogIndex.GetBlogPostsByAuthor C# (CSharp) Метод

GetBlogPostsByAuthor() публичный Метод

public GetBlogPostsByAuthor ( string author ) : IReadOnlyList
author string
Результат IReadOnlyList
        public IReadOnlyList<BlogPost> GetBlogPostsByAuthor(string author)
        {
            if (_authorToPostsLookup.ContainsKey(author))
            {
                return _authorToPostsLookup[author];
            }
            return new List<BlogPost>();
        }