public async Task <PagedListResult <OrderDto> > GetAllUsersOrdersAsPagedList(OrderListRequestDto input) { var result = await UnitOfWork.OrderRepository.GetOrdersAsPagedList( null, input.OrderNumber, input.PageNumber, input.PageSize, input.OrderStatus, input.DatePeriod); var finalResult = result.MapTo <PagedListResult <OrderDto> >(); return(finalResult); }
public async Task <IHttpActionResult> AsPagedList(OrderListRequestDto input) { var result = await _orderAppService.GetAllUsersOrdersAsPagedList(input); return(Ok(result)); }