Exemple #1
0
 /// <summary>
 /// Sorts the <paramref name="query"/> results using a cached request object to obtain the sort parameters.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="query"></param>
 /// <param name="search"></param>
 /// <returns></returns>
 public static IQueryable <T> Sort <T>(this IQueryable <T> query, IGenericSearch search)
 {
     return(search.Sort(query));
 }
Exemple #2
0
 /// <summary>
 /// Sorts the <paramref name="query"/> results using the provided request object to obtain the sort parameters.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="query"></param>
 /// <param name="search"></param>
 /// <param name="request"></param>
 /// <returns></returns>
 public static IQueryable <T> Sort <T>(this IQueryable <T> query, IGenericSearch search, object request)
 {
     return(search.Sort(query, request));
 }