Ejemplo n.º 1
0
        public IPagedList <Order> SearchOrders(OrderSearchModel model, int page = 1, int pageSize = 10)
        {
            var query = new OrderSearchQuery(model);

            return(_orderSearcher.Search(query.GetQuery(), page, pageSize, query.GetFilter(),
                                         new Sort(new SortField("id", SortField.INT, true))));
        }
Ejemplo n.º 2
0
 public IPagedList<Order> Search(OrderSearchModel model)
 {
     var query = new OrderSearchQuery(model);
     return _orderSearcher.Search(query.GetQuery(), model.Page, filter: query.GetFilter(),
         sort: new Sort(new SortField("id", SortField.INT, true)));
 }
Ejemplo n.º 3
0
 public IPagedList<Order> SearchOrders(OrderSearchModel model, int page = 1, int pageSize = 10)
 {
     var query = new OrderSearchQuery(model);
     return _orderSearcher.Search(query.GetQuery(), page, pageSize, query.GetFilter(),
         new Sort(new SortField("id", SortField.INT, true)));
 }