예제 #1
0
        public IPagedList <AmazonOrder> Search(AmazonOrderSearchModel model, int page = 1, int pageSize = 10)
        {
            var query = new AmazonOrderSearchQuery(model);

            return(_orderSearcher.Search(query.GetQuery(), page, pageSize, query.GetFilter(),
                                         new Sort(new SortField("id", SortField.INT, true))));
        }
예제 #2
0
 public IPagedList<AmazonOrder> Search(AmazonOrderSearchModel model, int page = 1, int pageSize = 10)
 {
     var query = new AmazonOrderSearchQuery(model);
     return _orderSearcher.Search(query.GetQuery(), page, pageSize, query.GetFilter(),
         new Sort(new SortField("id", SortField.INT, true)));
 }