예제 #1
0
        public async Task <(IEnumerable <Post>, IEnumerable <Comment>)> GetRecentPostsAndCommentsAsync(int count = 0)
        {
            SortOptions options = new SortOptions
            {
                SortBy    = nameof(Post.RowCreatedDateTime),
                SortOrder = SortOrder.Descending
            };

            return(await _blog.GetRecentPostAndComments(options, count));
        }