public IActionResult GetCustomerOrders(Guid id) { var orders = _customerOrderServices.GetAllOrders(id); if (orders.Count == 0) { return(NotFound()); } return(Ok(orders)); }
public IActionResult GetCustomerOrders() { var customerOrders = _customerOrderServices.GetAllOrders(); if (customerOrders == null) { return(NotFound()); } return(Ok(customerOrders)); }