Example #1
0
 public void SetOptionsWithQuery(Microsoft.AspNetCore.Http.IQueryCollection query)
 {
     this._includedQuery = Utils.FormatQueryToInclude(query[Constants.HTTP_QUERY_INCLUDE]);
     this._fields        = Utils.FormatQueryToFields(query.Where(m => m.Key.Contains("fields")));
     this.MakePagination(string.Join("&", query.Where(q => q.Key != "page").Select(q => q.Key + "=" + q.Value).ToArray()));
 }