Esempio n. 1
0
        public async Task <DataCollection <OrderDto> > GetAll(int page = 1, int take = 10, string orders = "")
        {
            IEnumerable <int> order = null;

            if (!string.IsNullOrEmpty(orders))
            {
                order = orders.Split(',').Select(x => Convert.ToInt32(x));
            }
            return(await _orderQueryService.GetAllAsync(page, take, order));
        }
Esempio n. 2
0
 public async Task <DataCollection <OrderDto> > GetAll(int page = 1, int take = 10)
 {
     return(await _orderQueryService.GetAllAsync(page, take));
 }