Exemplo n.º 1
0
        public ViewOrdersByStatusResponse ViewOrdersByStatus(ViewOrdersByStatusRequest request)
        {
            var staffOrders = _managementRepo.ViewOrdersByStatus(request.StatusId);
            List<Order> orders = new List<Order>();
            foreach (var order in staffOrders)
            {
                orders.Add(new Order()
                {
                    OrderId = order.OrderId,
                    OrderDate = order.OrderDate,
                    EmployeeNo = order.EmployeeNo,
                    OrdCode = order.OrdCode,
                    ItemNo = order.ItemNo,
                    Mailing = order.Mailing,
                    Month = order.Month,
                    Page = order.page,
                    Description = order.Description,
                    Size = order.Size,
                    Price = order.Price,
                    Dept = order.Dept,
                    StatusID = order.StatusID
                });
            }

            ViewOrdersByStatusResponse response = new ViewOrdersByStatusResponse()
            {
                Orders = orders
            };

            return response;
        }
Exemplo n.º 2
0
 public ViewOrdersByStatusResponse ViewOrdersByStatus(ViewOrdersByStatusRequest request)
 {
     return(_adminService.ViewOrdersByStatus(request));
 }