Exemplo n.º 1
0
 public PartialFindResult <CommentForApiContract> GetList(
     DateTime?before                 = null,
     DateTime?since                  = null,
     int?userId                      = null,
     EntryType entryType             = EntryType.Undefined,
     int maxResults                  = CommentQueries.DefaultMax,
     bool getTotalCount              = false,
     CommentOptionalFields fields    = CommentOptionalFields.None,
     EntryOptionalFields entryFields = EntryOptionalFields.None,
     ContentLanguagePreference lang  = ContentLanguagePreference.Default,
     CommentSortRule sortRule        = CommentSortRule.CreateDateDescending
     ) => _queries.GetList(before, since, userId, entryType, maxResults, getTotalCount, fields, entryFields, lang, sortRule);
Exemplo n.º 2
0
 public static IQueryable <Comment> OrderBy(this IQueryable <Comment> queryable, CommentSortRule sortRule) => sortRule switch
 {