Пример #1
0
        public IActionResult GetCustomerOrders(Guid id)
        {
            var orders = _customerOrderServices.GetAllOrders(id);

            if (orders.Count == 0)
            {
                return(NotFound());
            }

            return(Ok(orders));
        }
Пример #2
0
        public IActionResult GetCustomerOrders()
        {
            var customerOrders = _customerOrderServices.GetAllOrders();

            if (customerOrders == null)
            {
                return(NotFound());
            }

            return(Ok(customerOrders));
        }