private QueryResult <BaseItem> GetItems(GetSuggestedItems request, User user, DtoOptions dtoOptions)
 {
     return(_libraryManager.GetItemsResult(new InternalItemsQuery(user)
     {
         OrderBy = new[] { ItemSortBy.Random }.Select(i => new ValueTuple <string, SortOrder>(i, SortOrder.Descending)).ToArray(),
         MediaTypes = request.GetMediaTypes(),
         IncludeItemTypes = request.GetIncludeItemTypes(),
         IsVirtualItem = false,
         StartIndex = request.StartIndex,
         Limit = request.Limit,
         DtoOptions = dtoOptions,
         EnableTotalRecordCount = request.EnableTotalRecordCount,
         Recursive = true
     }));
 }
 private QueryResult <BaseItem> GetItems(GetSuggestedItems request, User user, DtoOptions dtoOptions)
 {
     return(_libraryManager.GetItemsResult(new InternalItemsQuery(user)
     {
         SortBy = new string[] { ItemSortBy.Random },
         MediaTypes = request.GetMediaTypes(),
         IncludeItemTypes = request.GetIncludeItemTypes(),
         IsVirtualItem = false,
         StartIndex = request.StartIndex,
         Limit = request.Limit,
         DtoOptions = dtoOptions,
         EnableTotalRecordCount = request.EnableTotalRecordCount,
         Recursive = true
     }));
 }