예제 #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));
        }