public async Task <PagedResults <OrderResponseDTO> > CustomerGetOrders(int customerId, [FromQuery] PagingParameters pagingParameters) { var pagedResults = await _orderRespository.GetByCustomerId(customerId, pagingParameters.Page, pagingParameters.PageSize); return(_mapper.Map <PagedResults <OrderResponseDTO> >(pagedResults)); }