예제 #1
0
        public async Task <IActionResult> GetOrdersForAdmin([FromQuery] OrderParamsForAdmin orderParamsForAdmin)
        {
            var orders = await _repo.GetOrdersForAdmin(orderParamsForAdmin);

            Response.AddPagination(orders.CurrentPage, orders.PageSize,
                                   orders.TotalCount, orders.TotalPages);

            return(Ok(orders));
        }