public SearchSummary <TEntity> Search <TEntity>(Queryable <TEntity> queryable, byte displayStart = 0, byte displayLength = 50) where TEntity : EntityBase { var request = new RestRequest($"search/{GetTableViewName<TEntity>()}", Method.POST); AppendWebsiteIdHeader(request); request.AddHeader("content-type", "application/json"); var search = queryable.Compile(); request.AddJsonBody(new SearchInputModel { DisplayStart = displayStart, DisplayLength = displayLength, Expression = search.Expression, Query = search.Query }); var response = _client.Execute(request); response.ThrowExceptionOnResponseError(); return(_client.Deserialize <SearchSummary <TEntity> >(response).Data); }