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)))); }
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))); }